about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMartin Gammelsæter <martin@mg.am>2023-03-16 11:56:33 +0100
committerMartin Gammelsæter <martin@mg.am>2023-03-16 12:34:04 +0100
commitf9bd88438589fa6fcc8eefe97061a7a3703ca625 (patch)
treedacc426bbe53e58fbfadc888cc72a62854e8ca3f /compiler/rustc_codegen_llvm/src
parent8a4eb9e3a87b1fb9a5078f6f45cf62e2f9f8bc2b (diff)
downloadrust-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