[wp-trac] [WordPress Trac] #26640: Performance Increase in apply_filter() (~11%)
WordPress Trac
noreply at wordpress.org
Thu Mar 21 13:47:49 UTC 2024
#26640: Performance Increase in apply_filter() (~11%)
-------------------------+--------------------------
Reporter: dshafik | Owner: (none)
Type: enhancement | Status: closed
Priority: normal | Milestone:
Component: Plugins | Version: 1.5
Severity: normal | Resolution: wontfix
Keywords: has-patch | Focuses: performance
-------------------------+--------------------------
Changes (by johnbillion):
* status: new => closed
* resolution: => wontfix
Comment:
@dshafik I'm sorry that a full decade has passed with no further response
to your ticket.
In the meantime the `apply_filters()` function has seen several
performance improvements to its internals, including avoiding the call to
`array_slice()` where possible which was a related bottleneck.
If someone wants to look into whether there is still a performance
improvement to be gained here by switching to calling `$func` rather than
`call_user_func_array()` then we'll need some good benchmarking numbers to
accompany it, although I suspect that the addition of the `is_callable()`
check will negate any further micro-optimisations.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26640#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list