rust/compiler/rustc_monomorphize/src
Piotr Osiewicz 578ea26b8f mono collector: Reduce \# of locking while walking the graph
While profiling Zed's dev build I've noticed that while most of the time `upstream_monomorphizations` takes a lot of time in monomorpization_collector, in some cases (e.g. build of `editor` itself)
the rest of monomorphization_collector_graph_walk dominates it. Most of the time is spent in collect_items_rec.

This PR aims to reduce the number of locks taking place; instead of locking output MonoItems once per children of current node, we do so once per *parent*. We also get to reuse locks for mentioned and used items.
While this commit does not reduce Wall time of Zed's build, it does shave off `cargo build -j1` from 43s to 41.5s.
2025-04-29 11:47:37 +02:00
..
mono_checks Rollup merge of #139809 - alexcrichton:wasm-simd-safe, r=RalfJung 2025-04-24 08:12:58 +02:00
partitioning working dupv and dupvonly for fwd mode 2025-04-16 17:13:31 -04:00
collector.rs mono collector: Reduce \# of locking while walking the graph 2025-04-29 11:47:37 +02:00
errors.rs make abi_unsupported_vector_types a hard error 2025-04-20 11:34:56 +02:00
lib.rs mono collector: Reduce \# of locking while walking the graph 2025-04-29 11:47:37 +02:00
partitioning.rs AsyncDrop implementation using shim codegen of async_drop_in_place::{closure}, scoped async drop added. 2025-04-28 16:23:13 +07:00
util.rs use TypingEnv when no infcx is available 2024-11-18 10:38:56 +01:00