[wp-trac] [WordPress Trac] #14429: Faster is_serialized

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 6 20:06:04 UTC 2010


#14429: Faster is_serialized
--------------------------+-------------------------------------------------
 Reporter:  sambauers     |       Owner:                        
     Type:  enhancement   |      Status:  new                   
 Priority:  normal        |   Milestone:  3.1                   
Component:  Optimization  |     Version:  3.0                   
 Severity:  minor         |    Keywords:  has-patch dev-feedback
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 I believe an even faster approach would be to split ghe regexp in two.
 Chech if the string ends with ; on the one hand side using substr, and
 then call preg_match without the expensive (memory intensive) .+ wildcard.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14429#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list