21639: Improve critical path of read() from cache
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 1 Apr 2024 19:58:06 +0000 (15:58 -0400)
committerPeter Amstutz <peter.amstutz@curii.com>
Tue, 2 Apr 2024 01:01:58 +0000 (21:01 -0400)
commitb91d06bf3ede4b9afa5a74070a4f8ca95d16f629
tree9fd9a773d806b85559e6a5c3a857411854c3ff7b
parentcc3f89292c0136ce5d9e56506f82ea743c59fff8
21639: Improve critical path of read() from cache

* Don't use tobytes(), it makes a copy, and it should be be zero-copy.
* Prefetching adds a lot of overhead.  Don't do it.
* Don't use a list comprehension to calculate cache size

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