Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BinaryPlatforms: prevent creating an identical regex every time a Platform is parsed #52829

Merged
merged 4 commits into from
Jan 10, 2024

Conversation

KristofferC
Copy link
Sponsor Member

@KristofferC KristofferC commented Jan 9, 2024

Pkg likes to call HostPlatform() a bit too often for its own good which shows up in some profiles. This makes HostPlatform() go from 250 us to 150 us with a quite trivial code change so should be fairly uncontroversial. (Pkg should probably also be fixed, alt. HostPlatform should be cached in Base.)

Copy link
Sponsor Member

@staticfloat staticfloat left a comment

Choose a reason for hiding this comment

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

Definitely a good change

@KristofferC KristofferC merged commit 0f7b598 into master Jan 10, 2024
4 of 7 checks passed
@KristofferC KristofferC deleted the kc/platform_regex branch January 10, 2024 20:11
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.

None yet

2 participants