Skip to content

[Cache][Lock][Semaphore] Optimize factories #53598

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

Closed
wants to merge 1 commit into from

Conversation

HypeMC
Copy link
Member

@HypeMC HypeMC commented Jan 21, 2024

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Inspired by #53448 (comment)

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Jan 22, 2024

I doubt this matters, and I also dunno if it's faster at all. PCRE is way heavier that a simple string check.
Also, that's not an improvement to the readability of the code base to me and it will make reviewing PRs that add new schemes harder.
I'm closing therefor. Thanks for proposing.

@HypeMC HypeMC deleted the optimize-storefactory branch January 22, 2024 23:14
@HypeMC
Copy link
Member Author

HypeMC commented Jan 22, 2024

@nicolas-grekas When I ran the benchmark for #53448, it was marginally faster, but I agree that readability takes a hit. I just wanted someone to confirm that it's not worth it, thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants