[wp-trac] [WordPress Trac] #50683: Parse content for shortcodes instead of using regex

WordPress Trac noreply at wordpress.org
Wed Aug 11 22:35:25 UTC 2021


#50683: Parse content for shortcodes instead of using regex
-------------------------------------------------+-------------------------
 Reporter:  cfinke                               |       Owner:
                                                 |  johnbillion
     Type:  enhancement                          |      Status:  reviewing
 Priority:  normal                               |   Milestone:  5.9
Component:  Shortcodes                           |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests early       |     Focuses:
  needs-testing early-like-actually-early        |
  needs-testing-info                             |
-------------------------------------------------+-------------------------

Comment (by cfinke):

 I think the variance is not as great as it seems -- within each version
 there are really two groupings of times. With PHP 7.1, for example, there
 are six times between 1.05 and 1.16 and 14 times between 0.36 and 0.44
 (and nothing in-between). PHP 7.2 is split between ~0.3 and ~0.8 times.

 So there must be some condition that forks the performance test onto
 either the fast path or the slow path. I'll see if I can reproduce these
 results on my machine and investigate what might be responsible.

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


More information about the wp-trac mailing list