google / neuroglancer

WebGL-based viewer for volumetric data
Apache License 2.0
1.02k stars 283 forks source link

perf(datasource/graphene): group together segment id requests within the same bounding box (leaves_many) #583

Open chrisj opened 2 months ago

chrisj commented 2 months ago

Implemented using a proxy object with a setTimeout of 0ms.

The downside to this approach is that neuroglancer still thinks there are many outgoing requests when it applies "concurent chunk requests" requiring users to set that value to a high numbers. 10k is good but even higher leads to quicker loading from my tests.