(Slow) Vanilla Visidata in the browser #2654
Replies: 1 comment 1 reply
-
Wow, interesting concept. I hope you can get it working. That would be great for sharing visidata demos. On my weak machine, visidata in WebVM was too slow to evaluate. Running But after you get it faster, and are ready for lesser speedups, try adjusting Line 14 in efbe84e By default, calculations for columns are run 10 times, about 100ms apart, before the main loop goes idle to wait for a keypress. You can see the 10 calculations if you put import time in your .visidatarc, and then create a column with the time via = time.time() .
Another optimization, that is much less significant, would be to turn off the |
Beta Was this translation helpful? Give feedback.
-
I have been tinkering with an easier way to share visidata with folks who aren't as terminal-savvy, and here is my recent milestone: https://asteroidb612.github.io/wisidata/
This is the full visidata application running client side in a browser thanks to some cool work by the WebVM project.
It took some fiddling with their templates to get it to work, and it still is unusably slow, but I am excited at the prospect of sending someone a link to a replay'd visidata session which they can step through and explore for themselves, without any installation work.
To that end, I need some help knowing how to improve my demo's speed and reliability. There may be tricks on the webvm side or the visidata side that would help me make a better demo - I am new to both!
If you know good ways to see into visidata, or some features to turn off that might boost performance, or have any other thoughts to improve this project, please share.
Beta Was this translation helpful? Give feedback.
All reactions