[wp-trac] [WordPress Trac] #43891: Performance improvement for WP_Query
WordPress Trac
noreply at wordpress.org
Sat Apr 28 13:36:37 UTC 2018
#43891: Performance improvement for WP_Query
-------------------------+-------------------------------------------------
Reporter: rnaby | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: trunk
Severity: major | Keywords: has-patch needs-testing 2nd-opinion
Focuses: | dev-feedback
-------------------------+-------------------------------------------------
`WP_Query` has some(10 I think) use of `reset()` function. But it has a
performance drawback. So here I'm proposing to replace the PHP native
`reset()` function with class method which will work with `foreach()`
loop.
Here is the benchmark-\\
[http://sandbox.onlinephpfunctions.com/code/d16f2e69944643bd49ad3b2beb4d37ad23a2d742].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43891>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list