Skip to content
Snippets Groups Projects
Commit fe6645d1 authored by janakr's avatar janakr Committed by Copybara-Service
Browse files

Make action cache concurrency-friendly to avoid high contention. Use...

Make action cache concurrency-friendly to avoid high contention. Use ConcurrentHashMap so there's no need for locking. Keep entries to be written to disk in a concurrent queue, and look their values up in the canonical map when writing them. This avoids races around writing data to the maps, although I don't know how big a deal that is anyway.

Doesn't seem to have much of a wall-time impact, most likely because contention just moves around. Hoping to tackle some of the ultimate causes soon.

PiperOrigin-RevId: 389272785
parent d86762c5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment