diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2019-01-15 21:53:37 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2019-01-17 15:26:43 +0100 |
| commit | f0d3df39cbe1a3afaaabddbc5764b4057c713dd5 (patch) | |
| tree | 0482535c1592d9380dd00819fb48dee4d93e56c3 /src/libsyntax/parse | |
| parent | 33e6df4b62237af312bf6e3f40a97f5bdc94949a (diff) | |
| download | rust-f0d3df39cbe1a3afaaabddbc5764b4057c713dd5.tar.gz rust-f0d3df39cbe1a3afaaabddbc5764b4057c713dd5.zip | |
Use a faster early exit during region expansion
Turns out that the equality check for regions is rather expensive, and the current early exit check works in such a way, that the comparison is even done twice. As we only really care about the case of equal scopes, we can perform a faster, more specialized check and move it up one level, so we can eventually skip the additional full comparison as well.
Diffstat (limited to 'src/libsyntax/parse')
0 files changed, 0 insertions, 0 deletions
