about summary refs log tree commit diff
path: root/compiler/rustc_data_structures/src/vec_cache/tests.rs
AgeCommit message (Collapse)AuthorLines
2025-06-05Simplify `vec_cache::tests::slot_index_exhaustive` by pulling out 0 caseJosh Triplett-11/+8
`slot_index_exhaustive` has additional complexity in its loop that only applies for index 0. Pull that case out of the loop.
2025-02-08Rustfmtbjorn3-5/+8
2024-11-15Improve VecCache under parallel frontendMark Rousskov-0/+95
This replaces the single Vec allocation with a series of progressively larger buckets. With the cfg for parallel enabled but with -Zthreads=1, this looks like a slight regression in i-count and cycle counts (<0.1%). With the parallel frontend at -Zthreads=4, this is an improvement (-5% wall-time from 5.788 to 5.4688 on libcore) than our current Lock-based approach, likely due to reducing the bouncing of the cache line holding the lock. At -Zthreads=32 it's a huge improvement (-46%: 8.829 -> 4.7319 seconds).