Read 2 Sample per... Fails.

Tormod Volden lists.tormod at gmail.com
Thu Mar 9 17:24:20 GMT 2023


On Thu, Mar 9, 2023 at 5:07 PM Dan Kemppainen wrote:
> Your results are interesting. Can you verify you are displaying only one
> sample per two frames? That is, every other line. This is my issue.

If you want every other line, use -s 2 of course. I see now that you
mentioned the number 2 in the subject, but your description of the
problem didn't have that much detail or examples.

I can confirm there is at least a performance problem (it takes
forever, at least beyond my patience, this is very unlike kst) whether
I use spaces, or commas:

perl -e 'print "1.0,1.1,1.2,1.3\n2.0,2.1,2.2,2.3\n" x 16000000' > /tmp/32Mi.data

kst2 --asciiDelim , /tmp/32Mi.data  -s 2 -y 1 -y 2 -y 3 -y 4

It doesn't seem to be a memory problem, the process grows to near 600
MB and stays stable.

For instance using -s 512 it takes 15 seconds on this 9yo laptop. -s
256 takes 23 seconds. And I can confirm I see only odd numbered lines.
Without -s it takes 21 seconds.

Tormod


More information about the Kst mailing list