silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
161 stars 17 forks source link

Decrease debounce delay dynamically on slices that are already cached #1667

Closed axelboc closed 2 weeks ago

axelboc commented 3 weeks ago

Finally something that truly feels promising for #1578 :partying_face:

Here's the gist:

How to test this in practice:

  1. Move the slider thumb one value at a time relatively slowly to request multiple slices
  2. You can now "replay" the fetched slices very quickly

ezgif-4-69da353371

Why this is awesome:

Next up, I'll play with prefetching a bit. I reckon if we can cleverly prefetch slices (like the next/previous 10, if they're not too big), we can get a "movie-like" feel. This will of course involve heuristics and maybe also provider-based configuration (i.e. viewerConfig). Either way, this feels very beneficial already!