diff options
| author | kwantam <kwantam@gmail.com> | 2015-04-16 15:38:35 -0400 |
|---|---|---|
| committer | kwantam <kwantam@gmail.com> | 2015-04-18 13:20:57 -0400 |
| commit | f14d289d71fd8e4956e7214bda3af15cd50898fe (patch) | |
| tree | 58cef2228ec26fffa5bdc2c31dbf366aed74c25a /src/rustllvm/PassWrapper.cpp | |
| parent | a81ce5f991148b3c701c6b4276cdcafe366cd8f4 (diff) | |
| download | rust-f14d289d71fd8e4956e7214bda3af15cd50898fe.tar.gz rust-f14d289d71fd8e4956e7214bda3af15cd50898fe.zip | |
optimize Unicode tables
Apply optimization described in https://github.com/rust-lang/regex/pull/73#issuecomment-93777126 to rust's copy of `unicode.py`. This shrinks librustc_unicode's tables.rs from 479kB to 456kB, and should improve performance slightly for related operations (e.g., is_alphabetic(), is_xid_start(), etc). In addition, pull in fix from @dscorbett's commit d25c39f86568a147f9b7080c25711fb1f98f056a in regex, which makes `load_properties()` more tolerant of whitespace in the Unicode tables. (This fix does not result in any changes to tables.rs, but could if the Unicode tables change in the future.)
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
