Faster wp_clone function
|Reported by:||sambauers||Owned by:||anonymous|
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.