matrix-react-sdk
ec3ff529 - Fast path for emojifying strings

Commit
8 years ago
Fast path for emojifying strings Emojione's regex for detecting emoji is *enourmous* and we were running it on every display name, room name, message etc every time those components mounted. Add a much simpler regex to rule out the majority of strings that contain no emoji and fast-path them. Makes room switching about 10% faster (in my tests with all the profiling turned on).
Author
Parents
Loading