Closed fonsp closed 5 months ago
Open Julia and type:
julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="pkg-terminal-spinners-with-css")
julia> using Pluto
I'm really proud of this PR 😙
2500 introduced two performance issues:
The solution in this PR is to replace all 4 progress characters with
◐
on the server side (before diffing). This fixes both issues because the updates are now much less frequent.To still get a spinning animation, we search for the
◐
character, give it a class and make it spin with a CSS animation. The result is almost identical!Before
https://github.com/fonsp/Pluto.jl/assets/6933510/55d2052b-fd74-455d-be66-47065a714130
After
https://github.com/fonsp/Pluto.jl/assets/6933510/c8ab4466-4c95-46f1-a5d2-3c9c769b9f3e
You can see that there are much fewer messages from the server:
https://github.com/fonsp/Pluto.jl/assets/6933510/05df3724-833c-46c1-b4d5-0ed3038dd6dcfix #2739