Changes between Initial Version and Version 1 of Ticket #32125, comment 4
- Timestamp:
- 04/24/2015 08:50:23 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32125, comment 4
initial v1 1 1 Seems there are two ways this can be optimized: 2 1. Get the new or modified nodes `textContent` and do `twemoji.test()` before running `parse()`. That is still a big regex but will be much faster in case there are mo emoji chars.2 1. Get the new or modified nodes `textContent` and do `twemoji.test()` before running `parse()`. That is still a big regex but will be much faster in case there are no emoji chars. 3 3 2. Implement something like Underscore's `_.throttle()` that will execute as soon as called but delay the next execution by 100ms -- 200ms.