JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
522 stars 77 forks source link

Excruciatingly slow on Windows #401

Closed henrikjaerleblad closed 2 years ago

henrikjaerleblad commented 2 years ago

I am using the Interact.jl package on Windows as a standalone web page via the webio_serve() function. It is unfortunately really slow, taking approx 7s for every interactive action to take effect. Does anyone know if there is anything I can do to make it faster?

I am also using it on Mac and there it works like a charm!

twavv commented 2 years ago

I don't have a Windows machine (nor, honestly, the time in the day) to try to figure this out. If you (or anyone) wants to try to profile this on Windows, I'd be open to that. Generally, with Windows performance issues, my first instinct is to check operations that interface with the filesystem.

Does turning off antivirus speed things up?

henrikjaerleblad commented 2 years ago

I think I found a solution. I had been using Julia 1.5.1, so I decided to remove Julia and all content in my .julia folder. I then installed Julia 1.6.2 and re-installed all my packages. I also allowed Julia freely through the firewall (which I am not certain I did before). And now, the response when using the web-based widgets is almost instantaneous (both on Mac and Windows)!

So I think it would be fine to close the issue.