[wp-trac] [WordPress Trac] #5320: Improve performance of seems_utf8() and uf8_uri_encode()

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 5 08:12:02 GMT 2007


#5320: Improve performance of seems_utf8() and uf8_uri_encode()
---------------------+------------------------------------------------------
 Reporter:  ryan     |       Owner:  anonymous  
     Type:  defect   |      Status:  new        
 Priority:  normal   |   Milestone:  2.4        
Component:  General  |     Version:             
 Severity:  normal   |    Keywords:  performance
---------------------+------------------------------------------------------
 seems_utf8() and uf8_uri_encode() call strlen() several times within
 loops.  strlen() only needs to be called once and its result assigned to a
 variable that is tested within the loops.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5320>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list