Skip to content

Conversation

@styfle
Copy link
Contributor

@styfle styfle commented Jul 18, 2023

@styfle
Copy link
Contributor Author

styfle commented Jul 18, 2023

@H4ad Do you have the systems you benchmarked from #19 to try this out on to make sure I didn't slow anything down?

@H4ad
Copy link
Contributor

H4ad commented Jul 18, 2023

@styfle No problem, same overall performance, could be a bit slower because of .toLowerCase, but I don't think it's enough to slow down in this case.

Copy link
Owner

@lovell lovell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given the following:

  • we're thinking about micro-optimisations
  • we only need to check for the string literal "GLIBC" in all capitals (or the string literal "musl" in all lower case)
  • the length of /usr/bin/ldd file on the latest Ubuntu is 5390 bytes

how about these changes?

Co-authored-by: Lovell Fuller <lovell@users.noreply.github.com>
Co-authored-by: Steven <steven@ceriously.com>
@lovell lovell merged commit 8cf409b into lovell:main Jul 19, 2023
@styfle styfle deleted the chore-refactor-lowercase-uppercase branch July 19, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants