-
Notifications
You must be signed in to change notification settings - Fork 30
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
Suggestion[s] #131
Suggestion[s] #131
Conversation
[skip ci]
Thanks for the suggestion! I will apply this before the next release. |
On that suggestion: A. When gnuplot is not installed, trying to invoke in in the shell gives three options. And only gnuplot-qt works. I tried gnuplot-x11 first (seemed logical and could also have guessed the other, gnuplot-nox was the only other option given). If you install gnuplot, you get the right one, unless you've already installed the wrong one. I'm not sure about other platforms. B. Congratulations on the package, it may be the fastest one (only under a second to first plot?), and still you're not happy, I would suggest relaxing to say half a second:
It's not quote under 1 sec. with all startup overhead (I saw this suggested way to time on discourse, without -O0):
at least on my machine (maybe too loaded). |
On your machine the above is maybe under 1 sec. I have (and didn't test without) on startup: "Warning: Could not load Revise." Interestingly your package is much faster than the competing/alternative (not sure why both?):
This evens out after first plot (and for all (plotting) packages, not just for gnuplot I think), so you only get the "ERROR: Gnuplot is taking too long to respond." once. I would still, again suggest relaxing the timeout. Maybe for all plots (I tried to look into the code and almost figured out, but you'll be better at fixing?), or even better a more relaxed timout for only the first plot that needs it? |
Thanks a lot for the data and the comments! Lots of things to look into.
One difference is that Gnuplot.jl is not precompiled, while Gaston is. That would account for at least a few seconds. |
I thought you liked to know I got time to plot under 0.28 sec with your package. So it's the fastest package I know of, or have tested, while I've tested some other very fast too with the same trick (not yet tried for all I benchmarked previously), see here: gcalderone/Gnuplot.jl#27 (comment) You've yet to merge the PR here, which seems uncontroversial to do. And opt. trick could be added (and precompile dropped as default anyway), but it goes only half way so, |
@PallHaraldsson Indeed I'm glad Gaston is so fast. Of course, a lot of the credit should go to gnuplot itself. I've been working a lot on Gaston lately, and I'm getting close to a new release, probably 1.0. When the code is done, I'll move on to documentation, and then I'll merge your PR. |
I am closing this PR:
Thanks for the PR and the suggestions! |
[skip ci]