-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Use spl_object_id() instead of spl_object_hash() #413
base: 4.1.x
Are you sure you want to change the base?
Conversation
Please retarget to 4.1.x |
PHP docs:
The behavior seems to be the same, but what are the performance gains by this, @rosier? Did you try some performance tests |
I wonder if we should use an |
I used the benchmark from |
An array + spl_object_id also outperforms https://3v4l.org/CZjfW#v8.4.3 |
As far as I remember was |
Small performance tweak.