cue icon indicating copy to clipboard operation
cue copied to clipboard

playground: editing can be slow or hang the site

Open verdverm opened this issue 4 years ago • 2 comments

They play site tries to run cue on every keystroke. Most of the time this is invalid CUE as I write statements and causes the page to lag or become non-responsive.

Could we have a button to run rather than auto every keystroke? Maybe a toggle to enable auto mode if desired?

verdverm avatar Jul 21 '21 15:07 verdverm

Thanks for raising @verdverm. Yes, could absolutely have a more manual "evaluate" button, equally we could debounce changes, and only process changes after a Xms delay.

myitcv avatar Jul 28 '21 12:07 myitcv

@verdverm do you still experience slowness with the playground? It still evaluates at every keystroke, but I ask because in the past four years it's evolved quite a lot, and the CUE parser and evaluator are also significantly more efficient.

I myself haven't really noticed any slowness once the WASM has been loaded, but perhaps it depends on the machine and the complexity of the CUE being edited.

mvdan avatar Dec 06 '25 14:12 mvdan