about summary refs log tree commit diff
path: root/compiler/rustc_parse/src
diff options
context:
space:
mode:
authorThe 8472 <git@infinite-source.de>2023-03-06 15:07:02 +0100
committerThe 8472 <git@infinite-source.de>2023-03-17 19:56:03 +0100
commit7cce618d18c8203369d605d1ccedcfda09d58acc (patch)
treec66fb6e99f48f923502f04644133e71654509e3f /compiler/rustc_parse/src
parent03b01c5bec658081605ab078ad3fbcdb6b30f6c2 (diff)
downloadrust-7cce618d18c8203369d605d1ccedcfda09d58acc.tar.gz
rust-7cce618d18c8203369d605d1ccedcfda09d58acc.zip
Fast path that skips over unchanged obligations in process_obligations
- only borrow the refcell once per loop
- avoid complex matches to reduce branch paths in the hot loop
- use a by-ref fast path that avoids mutations at the expense of having false negatives
Diffstat (limited to 'compiler/rustc_parse/src')
0 files changed, 0 insertions, 0 deletions