diff options
| author | Andrea Canciani <ranma42@gmail.com> | 2019-12-24 12:47:51 +0100 |
|---|---|---|
| committer | Andrea Canciani <ranma42@gmail.com> | 2020-02-11 10:22:47 +0100 |
| commit | 4e7aeaf1b52ee66ede1adb104fcd08b0463eb0f9 (patch) | |
| tree | 63714665d664085780edc48352ec4ee60a9e881a /src/test/debuginfo | |
| parent | dc4242d9052a42cdf329c3a2430d02a3b3d415cb (diff) | |
| download | rust-4e7aeaf1b52ee66ede1adb104fcd08b0463eb0f9.tar.gz rust-4e7aeaf1b52ee66ede1adb104fcd08b0463eb0f9.zip | |
Improve `char::is_ascii_*` code
These methods explicitly check if a char is in a specific ASCII range, therefore the `is_ascii()` check is not needed, but LLVM seems to be unable to remove it. WARNING: this change improves the performance on ASCII `char`s, but complex checks such as `is_ascii_punctuation` become slower on non-ASCII `char`s.
Diffstat (limited to 'src/test/debuginfo')
0 files changed, 0 insertions, 0 deletions
