[wp-trac] [WordPress Trac] #45804: Make WP_Hook gather callback performance information

WordPress Trac noreply at wordpress.org
Wed Jan 2 16:46:55 UTC 2019


#45804: Make WP_Hook gather callback performance information
-------------------------+------------------------------
 Reporter:  Rarst        |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Plugins      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  performance
-------------------------+------------------------------

Comment (by Rarst):

 I got more feedback in line of "just let people plug into it" and I don't
 feel that is prudent. It invites too much complexity by becoming event
 system for the event system.

 I get your point about nested events, but those can be worked backwards
 from timing data. As long as you have event boundaries you can reconstruct
 how they fit within each other. In my Laps plugin this is now done
 automatically with no need to know the ''nature'' of said events.

 Trying to do that explicitly is a glob of recursive madness. A hook
 calling a core function performing an SQL query calling a hook calling a
 plugin filter performing an SQL query calling a hook... and so on.

 So far I am just not convinced there is a specific need for arbitrary
 extensible system here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45804#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list