You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that is_smaller_or_equal_function is used here, which internally calls zend_compare. I previously also noticed that zend_compare is quite slow for primitives, and on my fork I have a patch that splits that function into a fast path and a slow path. So I wonder how much that would help in this use-case. I'll put it on my todo list to check this.
Description
In a recent performance investigation I identified
max()
as a perf bottleneck in sebastianbergmann/diff#118@bwoebi chimmed in and suggested
max()
should be improved at the php-src level.see his in-detail investigation at sebastianbergmann/diff#118 (comment)
The following code:
max()
should be fasterPHP Version
8.2.5
Operating System
macos
The text was updated successfully, but these errors were encountered: