[wp-trac] [WordPress Trac] #35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate

WordPress Trac noreply at wordpress.org
Wed Aug 2 12:33:23 UTC 2017


#35293: Emoji Regex in wp_encode_emoji() is wildly inaccurate
--------------------------+-----------------------
 Reporter:  pento         |       Owner:  pento
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  4.9
Component:  Emoji         |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------

Comment (by pento):

 == Test 4.1

 Based on Test 4, the staticize regex now runs as an array, too, along with
 some minor optimisations.

 '''Data''': https://travis-ci.org/pento/test-41501/builds/260169923

 '''Analysis''':
 - Moderate improvements across the board for 0% emoji, as the staticize
 emoji loop doesn't run if there are no html entities to check.
 - Longer posts that do contain emoji are slightly slower than in test 4.

 '''Conclusion''': There are still some optimisations to be made, but we're
 in the ballpark, at least.

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


More information about the wp-trac mailing list