You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using Gaston for a while, and in the past even looked into its source code. I discovered then that Gaston sends ASCII data to Gnuplot. This is not wrong algorithmically, but it degrades speed. Speed is degraded because Gnuplot needs to parse ASCII data; also, amount of data is greater for ASCII than for binary.
Speed is not an issue with small data sets, but for large datasets it is an issue.
With the latest Gaston version using debug mode I see:
"
┌ Gaston in function gnuplot_send
│ plot '/tmp/jl_1ESmqP' i 0
└
I understand that it's easier to debug ASCII than binary, so sending binary data should not necessarily be instead of ASCII, but it can be an option - especially in the early versions if they are to be implemented.
Thank in advance.
The text was updated successfully, but these errors were encountered:
@sergstesh Thanks for the suggestion. It is a good idea, and you're likely correct that this will improve speed, especially for plots with lots of data. I will try to get this done for v1.1 (a PR would be very welcome, too!).
I've been using Gaston for a while, and in the past even looked into its source code. I discovered then that Gaston sends ASCII data to Gnuplot. This is not wrong algorithmically, but it degrades speed. Speed is degraded because Gnuplot needs to parse ASCII data; also, amount of data is greater for ASCII than for binary.
Speed is not an issue with small data sets, but for large datasets it is an issue.
With the latest Gaston version using debug mode I see:
"
",
"
",
So data being sent to Gnuplot is still ASCII.
Format of binary data to be sent to Gnuplot is described e.g. in http://www.gnuplot.info/docs_5.2/Gnuplot_5.2.pdf starting from p86, under "BINARY DATA FILES:".
I understand that it's easier to debug ASCII than binary, so sending binary data should not necessarily be instead of ASCII, but it can be an option - especially in the early versions if they are to be implemented.
Thank in advance.
The text was updated successfully, but these errors were encountered: