[wp-trac] [WordPress Trac] #14671: Deprecate the "accepted args" argument in add_filter() and add_action()

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 15 10:40:19 UTC 2011


#14671: Deprecate the "accepted args" argument in add_filter() and add_action()
-------------------------+-----------------------------
 Reporter:  markjaquith  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------

Comment (by 5ubliminal):

 Anything except the above code kills performance. Caching in a static the
 get_defined_functions()[internals] and searching the array() slows things
 by up to 10 times. Caching ReflectionFunction-> method calls' results
 slows by about 10%. Anything involving extra array slows things down.

 Reflection is blazing fast. Nothing else matches it. And PHP 5.2 has it
 for sure.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14671#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list