Open hungpham3112 opened 2 years ago
Is Pluto often slow? Does versioninfo()
always take 5 minutes? How long does it take in the Julia REPL? Are there other commands that are also slow?
Is Pluto often slow? Does
versioninfo()
always take 5 minutes? How long does it take in the Julia REPL? Are there other commands that are also slow?
Pluto often slow to me. versioninfo()
sometimes take me 5 minutes? It's take 1s to run in Julia REPL? Other command slow too.
Today when I spend time to test with Pluto. I found some the same issue.
First test:
When running Pluto with Pluto.run(), everything ok and good. Then I open file.jl
with no error in that file, it's slow but ok too. Try to make a typo or a logic error in file.jl before close.
Second test: Stop old Pluto session, reopen it with Pluto.run(), everything still good. Reopen 'fiile.jl' and wait the notebook freeze for around 5 minutes. AFAIK, it seems like Pluto was trying to parse all the notebook at the same time, but when detect the error it have to spend a lot of time to parse that.
Note: In the second test, I know where the error located and tried to fix that and save it with <C-s>
, but reopen it the error still there and I have to wait the notebook done to work like normal.
Thanks for the videos! Unfortunately, all of this slowness is Julia's Just-In-Time compiler, which can take quite some time to run code for the first time. Pluto itself is written in Julia, which means that it needs to compile. We are doing a lot of work on improving Pluto's compilation overhead: https://github.com/fonsp/Pluto.jl/pulls?q=is%3Apr+sort%3Aupdated-desc+label%3Aperformance+ and Julia is also becoming faster with each update.
The last two notebooks are slow because they use Plots.jl, which is a very large package, that can take a lot of time to run in a new process.
I'm still new with Pluto, I don't know how to make Pluto faster to me but today I type:
versioninfo()
in the notebook.
The loading line in the picture quite laggy and I had to wait 5 minutes to done.
Julia version:
Version of Pluto: lastest.