about summary refs log tree commit diff
path: root/src/rustllvm/ArchiveWrapper.cpp
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-01-13 05:26:54 +0100
committerGitHub <noreply@github.com>2019-01-13 05:26:54 +0100
commit4d6fd9cfb70a27d5d656caa8f742971fbbafaea2 (patch)
tree80ada84c6371f577a5f1acc6f44b429bc1b3fd63 /src/rustllvm/ArchiveWrapper.cpp
parentedec83835aed689a9f5c6ab50d3eb5491007de25 (diff)
parent5f402b827726607b04887c7c7b8d8b95cce8f487 (diff)
downloadrust-4d6fd9cfb70a27d5d656caa8f742971fbbafaea2.tar.gz
rust-4d6fd9cfb70a27d5d656caa8f742971fbbafaea2.zip
Rollup merge of #57494 - dotdash:expand, r=nikomatsakis
Speed up item_bodies for large match statements involving regions

These changes don't change anything about the complexity of the algorithms, but use some easy shortcuts or modifications to cut down some overhead.

The first change, which incrementally removes the constraints from the set we're iterating over probably introduces some overhead for small to medium sized constraint sets, but it's not big enough for me to observe it in any project I tested against (not that many though).

Though most other crates probably won't improve much at all, because huge matches aren't that common, the changes seemed simple enough for me to make them.

Ref #55528

cc unicode-rs/unicode-normalization#29

r? @nikomatsakis
Diffstat (limited to 'src/rustllvm/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions