[wp-trac] [WordPress Trac] #35025: Performance regression in comments_template in 4.4

WordPress Trac noreply at wordpress.org
Mon Dec 14 19:39:34 UTC 2015


#35025: Performance regression in comments_template in 4.4
--------------------------+---------------------------
 Reporter:  rogerhub      |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4.1
Component:  Comments      |     Version:  4.4
 Severity:  normal        |  Resolution:  fixed
 Keywords:  fixed-major   |     Focuses:  performance
--------------------------+---------------------------
Changes (by boonebgorges):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35932"]:
 {{{
 #!CommitTicketReference repository="" revision="35932"
 Don't use `array_merge()` when building comment children arrays.

 `array_merge()` is much slower than building the combined array using a
 `foreach` loop. The performance difference was causing a speed regression
 with
 the `get_children()` functionality introduced in 4.4.

 Merges [35931] to the 4.4 branch.

 Props rogerhub.
 Fixes #35025.
 }}}

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


More information about the wp-trac mailing list