rust/compiler/rustc_query_system/src/dep_graph
bors 3ef8e64ce9 Auto merge of #139758 - Zoxc:thread-local-graph, r=oli-obk
Use thread local dep graph encoding

This adds thread local encoding of dep graph nodes. Each thread has a `MemEncoder` that gets flushed to the global `FileEncoder` when it exceeds 64 kB. Each thread also has a local cache of dep indices. This means there can now be empty gaps in `SerializedDepGraph`.

Indices are marked green and also allocated by the new atomic operation `DepNodeColorMap::try_mark_green` as the encoder lock is removed.
2025-05-07 12:39:54 +00:00
..
debug.rs Use more slice patterns inside the compiler 2024-08-07 13:37:52 +02:00
dep_node.rs Represent diagnostic side effects as dep nodes 2025-03-14 16:01:58 +01:00
edges.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
graph.rs Add some comments 2025-05-01 10:20:34 +02:00
mod.rs Use thread local dep graph encoding 2025-05-01 10:20:31 +02:00
query.rs Rename graph::implementation::Graph to LinkedGraph 2025-05-06 14:35:06 +10:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
serialized.rs Use the portable AtomicU64 2025-05-06 18:36:14 +02:00

To learn more about how dependency tracking works in rustc, see the [rustc guide].