[wp-trac] [WordPress Trac] #34121: Add PCRE Performance Testing
WordPress Trac
noreply at wordpress.org
Fri Oct 2 04:25:42 UTC 2015
#34121: Add PCRE Performance Testing
-------------------------+-----------------------------
Reporter: miqrogroove | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Formatting | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"34761"]:
{{{
#!CommitTicketReference repository="" revision="34761"
Shortcodes/Formatting: Add PCRE Performance Testing
* Move pattern from `wptexturize()` into a separate function.
* Move pattern from `wp_html_split()` into a separate function.
* Beautify code for `wp_html_split()`.
* Remove unnecessary instances of `/s` modifier in patterns that don't use
dots.
* Add `tests/phpunit/data/formatting/whole-posts.php` for testing larger
strings.
* Add function `benchmark_pcre_backtracking()`.
* Add tests for `wp_html_split()`.
* Add tests for `wptexturize()`.
* Add tests for `get_shortcode_regex()`.
Props miqrogroove.
Fixes #34121.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34121#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list