about summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-11-19 02:07:48 +0000
committerbors <bors@rust-lang.org>2024-11-19 02:07:48 +0000
commit5926e82dd1eae211c6e2ffe446de54df04798e89 (patch)
tree215bd11859c5457e0984595fd48e6c7a1e9877c2 /compiler/rustc_hir_analysis/src
parentb71fb5edc0217eaf8fc824a44cd7b0945e29ff4d (diff)
parentda58efb11df229eac6eb727c2884546310f9ffde (diff)
downloadrust-5926e82dd1eae211c6e2ffe446de54df04798e89.tar.gz
rust-5926e82dd1eae211c6e2ffe446de54df04798e89.zip
Auto merge of #124780 - Mark-Simulacrum:lockless-cache, r=lcnr
Improve VecCache under parallel frontend

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 (~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).

try-job: i686-gnu-nopt
try-job: dist-x86_64-linux
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions