[wp-trac] [WordPress Trac] #14429: Faster is_serialized
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 27 12:28:42 UTC 2010
#14429: Faster is_serialized
--------------------------+-------------------------------------------------
Reporter: sambauers | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Optimization | Version: 3.0
Severity: minor | Keywords:
--------------------------+-------------------------------------------------
is_serialized runs a preg_match every time it is called which is slow.
This patch replaces the preg_match conditional with two much cheaper
conditionals.
Estimated speedup for WordPress on a reasonably fresh install is about 3%.
Would be more on installs with lots of options set I imagine.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14429>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list