observablehq / stdlib

The Observable standard library.
https://observablehq.com/@observablehq/standard-library
ISC License
970 stars 83 forks source link

Increase accumulateQuery debounce to 150ms #351

Closed annie closed 1 year ago

annie commented 1 year ago

An attempt to address the problem of slow cells downstream of streaming data sources (laid out in https://github.com/observablehq/observablehq/issues/10193).

With fast database clients, I saw a bit of a noticeable difference in streaming speed, but I don't feel like it's enough to be a problem.

10ms debounce (before)

https://user-images.githubusercontent.com/6464196/218569409-ae621b88-cb8e-45c9-9d9d-016601fbfb84.mov

150ms debounce (after)

https://user-images.githubusercontent.com/6464196/218569436-c06006ad-9284-4bc4-b53d-0ee8fe07cc23.mov