JunoLab / Juno.jl

MIT License
145 stars 23 forks source link

Atom slows to a crawl when a large Gadfly plot is displayed #145

Open jonathanBieler opened 6 years ago

jonathanBieler commented 6 years ago
using Gadfly
plot(x=randn(80_000), y=randn(80_000), color=randn(80_000), Geom.point)

Then everything (typing, moving the cursor, opening the command palette, ...) has a 0.5s delay or so (and it get worse the larger the plot). Drawing the plot itself takes several second so it's not redrawing the plot at each action, but it's clearly doing something that takes some time. This doesn't seem to happen with plotly.

pfitzseb commented 6 years ago

The problem here is that neither Gadfly nor Juno perform any downsampling, I think.

I'm in the process of overhauling Juno's plot handling though, so I'm relatively confident the next Juno version will fix this issue.