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. Props rogerhub. Fixes #35025. Built from https://develop.svn.wordpress.org/trunk@35931 git-svn-id: https://core.svn.wordpress.org/trunk@35895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Loading
Please register or sign in to comment