[wp-trac] [WordPress Trac] #28724: Optimize Regexp Usage in wptexturize()

WordPress Trac noreply at wordpress.org
Sat Jul 5 15:52:47 UTC 2014


#28724: Optimize Regexp Usage in wptexturize()
-------------------------+------------------
 Reporter:  miqrogroove  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.0
Component:  Formatting   |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------

Comment (by miqrogroove):

 In a side-by-side comparison of v3.8 and my working copy, results of
 running wptexturize 10 times on a sample post:

 v3.8 - 0.260 seconds
 V4.0 - 0.061 seconds

 This includes the impact of bug fixes, added patterns, HTML avoidance,
 calls to _wptexturize_pushpop_element(), and running the inner loop.

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


More information about the wp-trac mailing list