[wp-trac] [WordPress Trac] #56541: Performance: Don't execute jumps in loops

WordPress Trac noreply at wordpress.org
Sat Sep 10 07:11:09 UTC 2022


#56541: Performance: Don't execute jumps in loops
-------------------------+------------------------------
 Reporter:  Cybr         |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  performance
-------------------------+------------------------------

Comment (by costdev):

 The results speak for themselves IMO. Nice work @Cybr!

 > The principle is this: Do not execute work inside a loop that should be
 done outside of it.

 Should this be considered for an entry in the handbook, I would revise
 this to:
 > Do not execute work inside a loop that **can** be done outside of it.

 That way, personal opinion regarding "should" doesn't come into it.

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


More information about the wp-trac mailing list