21639: Keep a running total instead of recomputing total
authorPeter Amstutz <peter.amstutz@curii.com>
Tue, 2 Apr 2024 00:17:22 +0000 (20:17 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Tue, 2 Apr 2024 01:01:58 +0000 (21:01 -0400)
commit743b9941ce35d8877365742700c9b4c1eded0968
treeadaf179e978450604ef761ca59b6c53678d81c90
parentb91d06bf3ede4b9afa5a74070a4f8ca95d16f629
21639: Keep a running total instead of recomputing total

From profiling, it turns out just summing the block sizes to get the
cache usage was a significant drag on the read() fast path.

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
sdk/python/arvados/diskcache.py
sdk/python/arvados/keep.py