Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #32125, comment 12


Ignore:
Timestamp:
05/03/2015 07:32:25 PM (10 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32125, comment 12

    initial v1  
    22> Related: #32197
    33
    4 Yes, suspecting this is the exact same problem with Chrome and probably WebKit. Note that the Twemoji regex is used for both testing and replacing the chars, and it is a huge difference: over 2800 times slower! @brad989, can you confirm the performance in Firefox and IE11.
     4Yes, suspecting this is the exact same problem with Chrome and probably WebKit. Note that the Twemoji regex is used for both testing and replacing the chars. It is a huge difference, according to the fiddle over 2800 times slower! @brad989, could you confirm the performance in Firefox and IE11.
    55
    66This will eventually be fixed in the affected browsers, not sure how we can mitigate it until then. Perhaps we can try to make a shorter/faster regex to test for emoji chars, even if it is not as precise?