Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #35293, comment 39


Ignore:
Timestamp:
08/03/2017 07:59:36 AM (8 years ago)
Author:
pento
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35293, comment 39

    initial v1  
    1 == Test 7.2
     1== Test 7.3
    22
    33Looping over the entire emoji array for every block in staticize is pretty wasteful. Instead, looping over it at the start to create a smaller array of emoji that we'll probably be replacing means we reduce the size of the inner loop significantly.
     
    77'''Analysis''':
    88- We're now about the same or significantly faster on all tests, when compared to 6.1.
    9 - When compared to the old behaviour, 7.2 is about the same, or a bit slower for primary use cases.
     9- When compared to the old behaviour, 7.3 is about the same, or a bit slower for primary use cases.
    1010
    1111'''Conclusion''': Despite now being the fastest, the optimisation applied here could be applied to 6.1, too. That'll need more testing to compare.