[wp-trac] [WordPress Trac] #8844: Faster wp_clone function
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 12 14:02:26 GMT 2009
#8844: Faster wp_clone function
--------------------------+-------------------------------------------------
Reporter: sambauers | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: Optimization | Version: 2.7
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
The current wp_clone() function calls version_compare() on every
execution, which is slooow.
Attached patch stores the result of version_compare() as a static
variable. The speedup for bbPress was about 5% on a large site, not
profiled in WordPress yet, but result should be similar as wp_clone() is
called in cache retrieval processes.
--
Ticket URL: <http://trac.wordpress.org/ticket/8844>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list