[wp-trac] [WordPress Trac] #21169: remove_action on a tag within do_action for that tag can cause actions to be missed

WordPress Trac wp-trac at lists.automattic.com
Thu Jul 5 21:32:24 UTC 2012


#21169: remove_action on a tag within do_action for that tag can cause actions to
be missed
-------------------------------------+------------------------------
 Reporter:  devesine                 |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Plugins                  |     Version:
 Severity:  major                    |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------

Comment (by devesine):

 A quick performance test (based on phpbench.com's iteration test code,
 modified to behave like the current and proposed functionality; attached)
 suggests that each() may in fact be a bit faster than next().

 Runtimes for next():

 0.00029993057250977
 0.00030994415283203
 0.00030922889709473
 0.00030899047851562
 0.00034213066101074
 0.00031399726867676
 0.00032401084899902
 0.00030303001403809
 0.00029993057250977
 0.00030112266540527

 Runtimes for each():

 0.00015902519226074
 0.0001521110534668
 0.00014805793762207
 0.00015783309936523
 0.00016498565673828
 0.00014805793762207
 0.00014400482177734
 0.00016307830810547
 0.00014400482177734
 0.00016307830810547

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


More information about the wp-trac mailing list