diff options
| author | Martin Gammelsæter <martin@mg.am> | 2023-03-16 20:20:37 +0100 |
|---|---|---|
| committer | Martin Gammelsæter <martin@mg.am> | 2023-03-16 21:42:15 +0100 |
| commit | 355e1dda1df8a8106a1692eb7f019fb00df8c3ab (patch) | |
| tree | 5427f796e7b8219263a016a2f1139c07ab4610ec /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | f9bd88438589fa6fcc8eefe97061a7a3703ca625 (diff) | |
| download | rust-355e1dda1df8a8106a1692eb7f019fb00df8c3ab.tar.gz rust-355e1dda1df8a8106a1692eb7f019fb00df8c3ab.zip | |
Improve case mapping encoding scheme
The indices are encoded as `u32`s in the range of invalid `char`s, so that we know that if any mapping fails to parse as a `char` we should use the value for lookup in the multi-table. This avoids the second binary search in cases where a multi-`char` mapping is needed. Idea from @nikic
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
