[wp-trac] [WordPress Trac] #32125: Emoji script: multiple second execution time when using AngularJS to insert text

WordPress Trac noreply at wordpress.org
Wed Apr 29 16:01:21 UTC 2015


#32125: Emoji script: multiple second execution time when using AngularJS to insert
text
--------------------------+------------------
 Reporter:  brad989       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.3
Component:  Formatting    |     Version:  4.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------

Comment (by brad989):

 Replying to [comment:8 azaozz]:
 > In 32125.patch: test if any added nodes contain text with emoji chars
 before parsing them. That optimizes/speeds up processing of added nodes
 quite a bit. The testing regex in Twemoji is quite large but still much
 better than parsing nodes needlessly.
 >
 > @brad989: can you check if this fixes it in your case.


 The patch does indeed speed up the execution time for posts without
 special character codes quite a bit (from ~80ms to 4ms).

 However, when the posts include special character codes that aren't emojis
 (’ for apostrophes, for instance), I'm still getting 1000ms+
 execution times when angular tries to compile it.

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


More information about the wp-trac mailing list