about summary refs log tree commit diff
path: root/tests/assembly-llvm/breakpoint.rs
diff options
context:
space:
mode:
authorKarl Meakin <karl.meakin@arm.com>2025-08-02 23:32:10 +0100
committerKarl Meakin <karl.meakin@arm.com>2025-09-07 15:21:24 +0200
commita8c669461f0c71985c72dd5b05f70b8d4d149e3b (patch)
tree9319ed6acf4501829107836c660d74bf32dfa6a4 /tests/assembly-llvm/breakpoint.rs
parentfbd8f95118fff54a2402983d3f446cad9b2f30c5 (diff)
downloadrust-a8c669461f0c71985c72dd5b05f70b8d4d149e3b.tar.gz
rust-a8c669461f0c71985c72dd5b05f70b8d4d149e3b.zip
optimization: Don't include ASCII characters in Unicode tables
The ASCII subset of Unicode is fixed and will never change, so we don't
need to generate tables for it with every new Unicode version. This
saves a few bytes of static data and speeds up `char::is_control` and
`char::is_grapheme_extended` on ASCII inputs.

Since the table lookup functions exported from the `unicode` module will
give nonsensical errors on ASCII input (and in fact will panic in debug
mode), I had to add some private wrapper methods to `char` which check
for ASCII-ness first.
Diffstat (limited to 'tests/assembly-llvm/breakpoint.rs')
0 files changed, 0 insertions, 0 deletions