1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 15:44:57 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibUnicode
Timothy Flynn ca2b030336 LibUnicode: Use binary search for lookups into the generated emoji data
This sorts the array of generated emoji data by code point (first by
code point length, then by code point value). This lets us use a binary
search to find emoji data, rather than the current linear search.

In a profile of scrolling around /home/anon/Documents/emoji.txt, this
reduces the runtime of Gfx::Emoji::emoji_for_code_points from 69.03% to
28.42%. Within that, Unicode::find_emoji_for_code_points reduces from
28.42% to just 1.95%.
2023-03-05 16:44:20 +01:00
..
CMakeLists.txt LibUncode: Parse and generate emoji code point data 2022-09-08 23:12:31 +01:00
GenerateEmojiData.cpp LibUnicode: Use binary search for lookups into the generated emoji data 2023-03-05 16:44:20 +01:00
GenerateUnicodeData.cpp LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00
GeneratorUtil.h LibCore: Remove Stream.h 2023-02-13 00:50:07 +00:00