mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
Meta+LibUnicode: Avoid relocations for static unicode data
Previously the s_decomposition_mappings variable would refer to other data in s_decomposition_mappings_data. This would cause thousands of avoidable relocations at load time. This saves about 128kB RAM for each process which uses LibUnicode.
This commit is contained in:
parent
fb71df5cb1
commit
2d3567ee92
3 changed files with 26 additions and 12 deletions
|
@ -15,8 +15,8 @@
|
|||
|
||||
namespace Unicode {
|
||||
|
||||
Optional<CodePointDecomposition const&> code_point_decomposition(u32 code_point);
|
||||
Span<CodePointDecomposition const> code_point_decompositions();
|
||||
Optional<CodePointDecomposition const> code_point_decomposition(u32 code_point);
|
||||
Optional<CodePointDecomposition const> code_point_decomposition_by_index(size_t index);
|
||||
|
||||
enum class NormalizationForm {
|
||||
NFD,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue