]> git.lizzy.rs Git - rust.git/commit
Auto merge of #24560 - kwantam:apply_table_opt, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 18 Apr 2015 21:30:03 +0000 (21:30 +0000)
committerbors <bors@rust-lang.org>
Sat, 18 Apr 2015 21:30:03 +0000 (21:30 +0000)
commita16640051dc24d151f432e12a85b70d68d757753
treee8d170c167bb5c927989763f41cfcb99a4658753
parent49a94f29bbe49bd26d14cbf87b0955bd4befb8c1
parentf14d289d71fd8e4956e7214bda3af15cd50898fe
Auto merge of #24560 - kwantam:apply_table_opt, r=alexcrichton

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.)