[wp-trac] [WordPress Trac] #14245: Remove create_function from preg_replace_callback to improve memory usage

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 23 12:25:10 UTC 2010


#14245: Remove create_function from preg_replace_callback to improve memory usage
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Performance   |     Version:                 
 Severity:  normal        |    Keywords:  has-patch      
--------------------------+-------------------------------------------------

Comment(by hakre):

 Maybe using a static function does the job as well and saving the global
 namespace function starting with subjective stuff like funky? Not that I
 like create_function that much, but well, it was in use anyway and it's
 for this callback only.

 Second patch looks being an upload in error.

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


More information about the wp-trac mailing list