about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-10 00:58:40 +0100
committerGitHub <noreply@github.com>2024-02-10 00:58:40 +0100
commit8e1eaddd272cb560a6327cf4048ef6e0d9f17c53 (patch)
treefe4854fe619d1be76923a4efbb41857bb18e13ed /compiler/rustc_interface/src
parent8177c0fead33cae3b9c0105b01a70ca462f2bace (diff)
parent4ef1790b4e593b02366f0eb5a0bfda6d825b2630 (diff)
downloadrust-8e1eaddd272cb560a6327cf4048ef6e0d9f17c53.tar.gz
rust-8e1eaddd272cb560a6327cf4048ef6e0d9f17c53.zip
Rollup merge of #120853 - blyxyas:no-collect, r=cjgillot
Avoid a collection and iteration on empty passes

Just some mini optimization I saw in the wild. This way, we avoid a `collect` and `map` on an empty `passes`. Honestly, I don't even think this is big enough of a change to make a benchmark, but I'd still like to see results.

Based on [this book](https://nnethercote.github.io/perf-book/iterators.html#collect-and-extend)
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions