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

[Performance] Use more performance spl_object_id() #4876

Merged
merged 12 commits into from
Aug 28, 2023

Conversation

samsonasik
Copy link
Member

spl_object_id() is exists since php 7.2, I think we can use spl_object_id().

Refs:

Benchmark

Before call in loop took: 13.639ms

https://3v4l.org/4rUL4

After call in loop took: 4.835ms

https://3v4l.org/jKtO6

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@TomasVotruba
Copy link
Member

Looks good, thanks 👍

Go for merge when ready!

@samsonasik samsonasik merged commit d8d31de into main Aug 28, 2023
39 checks passed
@samsonasik samsonasik deleted the more-performance-spl-object-id branch August 28, 2023 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants