silx-kit / h5web

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

Remove debounce on dimension mapping state to reduce lag #1634

Closed axelboc closed 1 month ago

axelboc commented 2 months ago

Baby step to address #1578

  1. We first added debouncing on the dimension mapping state in #888 to address #879.
  2. In #920, we then realised that this also debounced the axis mappers (the D0/D1/.../Dn button groups), so we opened #975 with the goal of moving the debounce to the sliders.
  3. Turns out that in that PR, we added debouncing to the sliders without actually removing it on the dimension mapping state... So we ended up with two debounces, for a total of 350 ms.

In this PR, I therefore remove the debounce on the dimension mapping state, thus saving 100ms both when slicing and changing axis dimensions.