Skip to content

heatmap performance #125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ssfrr opened this issue Jun 28, 2017 · 1 comment
Open

heatmap performance #125

ssfrr opened this issue Jun 28, 2017 · 1 comment
Labels

Comments

@ssfrr
Copy link
Contributor

ssfrr commented Jun 28, 2017

I suspect this isn't heatmap-specific, but that's the context in which I'm seeing it pop up.

In a Juno Session, running

using PlotlyJS
X = rand(1025, 5000)'
plot(heatmap(z=X))

I use this sort of thing for plotting audio spectrograms.

On my machine the plot line takes about 12s before it looks like the Julia function returns (I see a result in Atom and the spinner animation stops), and then 9s more before the heatmap is displayed.

Timings also seem about the same when running from the REPL.

here is a JSFiddle with a pure-javascript version.

Clicking run displays the plot in about 2.5-3s, which also isn't great, but it seems like the Javascript side isn't the main bottleneck.

I'm open to the idea that this is an unreasonable use-case for PlotlyJS, but I just like it so much for all my other plotting needs I want to use it for everything. :)

@sglyon
Copy link
Member

sglyon commented Jun 29, 2017

Thanks for opening here. I would love to get this working more efficiently.

@MikeInnes put down some thoughts on how to do data transfer more efficiently over in #77, but I don't think anyone has taken the time to follow through.

Unfortunately I don't have a better answer for you right now :(

@sglyon sglyon added the perf label Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants