diff options
| author | Martin Gammelsæter <martin@mg.am> | 2023-03-16 11:56:33 +0100 |
|---|---|---|
| committer | Martin Gammelsæter <martin@mg.am> | 2023-03-16 12:34:04 +0100 |
| commit | f9bd88438589fa6fcc8eefe97061a7a3703ca625 (patch) | |
| tree | dacc426bbe53e58fbfadc888cc72a62854e8ca3f /compiler/rustc_codegen_llvm/src | |
| parent | 8a4eb9e3a87b1fb9a5078f6f45cf62e2f9f8bc2b (diff) | |
| download | rust-f9bd88438589fa6fcc8eefe97061a7a3703ca625.tar.gz rust-f9bd88438589fa6fcc8eefe97061a7a3703ca625.zip | |
Split unicode case LUTs in single and multi variants
The majority of char case replacements are single char replacements, so storing them as [char; 3] wastes a lot of space. This commit splits the replacement tables for both `to_lower` and `to_upper` into two separate tables, one with single-character mappings and one with multi-character mappings. This reduces the binary size for programs using all of these tables with roughly 24K bytes.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
