diff options
| author | Arpad Borsos <arpad.borsos@sentry.io> | 2024-02-15 12:00:34 +0100 |
|---|---|---|
| committer | Arpad Borsos <arpad.borsos@sentry.io> | 2024-02-15 12:00:34 +0100 |
| commit | 8eaaa6e610d92e2b29ef1cf46a796cc27c96428d (patch) | |
| tree | abf85c35ef8f56eb7f0f191846b38f7a11649791 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | bd6b3361339522cc258d1f4165e3340e4cb1add4 (diff) | |
| download | rust-8eaaa6e610d92e2b29ef1cf46a796cc27c96428d.tar.gz rust-8eaaa6e610d92e2b29ef1cf46a796cc27c96428d.zip | |
Add ASCII fast-path for `char::is_grapheme_extended`
I discovered that `impl Debug for str` is quite slow because it ends up doing a `unicode_data::grapheme_extend::lookup` for each char, which ends up doing a binary search. This introduces a fast-path for ASCII chars which do not have this property. The `lookup` is thus completely gone from profiles.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
