Repository navigation
Coalesce concurrent chunk range reads by default - #30
Conversation
|
Timings behind the request counts in the description (posted by Claude Code, which did the implementation and the measurements).
DetailsNode 22 on a laptop over a cellular link, one time step read through zarrita 0.7, chunk Range requests only (manifest reads excluded), wall time until the array is decoded. The link's latency varied by about ±50 % between runs, so the wall times are indicative, not a benchmark; the request and byte counts are exact.The ocean rows are why the default gap is 256 KiB with the waste bound rather than 1 MiB: beyond about 128–256 KiB the extra requests saved are paid for with bytes that are fetched and thrown away (2.8× the payload at 1 MiB), and the wall time stops improving. For layouts where a step's chunks are contiguous (the 2 km case, and the 8 km/4 km products that are one chunk per step) the default collapses a step to a handful of requests at no byte cost. In the browser (gridlook, headless Chromium) the same 2 km step went from 148 Range requests to 8 for the whole level, and to one 3.45 MB request for the part in view once the viewer only loads its view window. |
|
...minor update for the repo pointer and ref.json (the only objects that change in place): they are now read with no-cache, which checks the ETag and still serves the cached copy on a 304, otherwise fetches the new one. Fixes a browser staying on an old snapshot across reloads after a commit. One conditional request per repository open, so no meaningful performance impact. |
Shane98c
left a comment
There was a problem hiding this comment.
Sorry i was slow here! this looks good!
This came up while virtualizing some of the ISMIP7 forcing data (i.e., CMIP forcings), and performance was getting killed with lots of small range requests for data chunks that were (mostly) contiguous. Notes from Claude below. @Shane98c, probably worth a quick glance since it changes the default behavior.
🤖 (from claude)
Details