[wp-trac] [WordPress Trac] #28623: Optimize the wptexturize() Loop

WordPress Trac noreply at wordpress.org
Tue Jun 24 17:44:21 UTC 2014


#28623: Optimize the wptexturize() Loop
-------------------------+------------------
 Reporter:  miqrogroove  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Formatting   |     Version:  1.5
 Severity:  normal       |  Resolution:
 Keywords:  wptexturize  |     Focuses:
-------------------------+------------------

Comment (by dllh):

 I ran my prior tests from #28575 against trunk and with the second draft
 of the patch applied, and it's a nice improvement. My test is pretty blunt
 and not granular, but doing 10 iterations of `wptexturize()` for a 1MB
 post, trunk does it in around 6.2 seconds, and the patch shaves about a
 second off that time. More granular profiling like what you did on the
 other ticket will of course be more useful than my test. Seems like a nice
 step forward, though!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28623#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list