mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +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
Notes:
sideshowbarker
2024-07-17 04:44:10 +09:00
Author: https://github.com/gunnarbeutner
Commit: 2d3567ee92
Pull-request: https://github.com/SerenityOS/serenity/pull/15953
Reviewed-by: https://github.com/trflynn89 ✅
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