Bug 195163 - Complete vector is re-read at every update
Summary: Complete vector is re-read at every update
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.7.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-04 01:29 UTC by Andrew Walker
Modified: 2009-06-04 02:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2009-06-04 01:29:45 UTC
Version:           1.7.0 (using KDE 3.5.10)
OS:                Linux
Installed from:    Compiled From Sources

PROBLEM:

An updating ascii data file is re-read with every update

STEPS TO REPRODUCE:

Add suitable debug statements to the ascii datasource code so that you are advised of the samples that are being read from Kst
Create an ascii data file with a single vector that adds a new item every second in time
Start Kst and create a plot with this vector in, where the vector is in read-to-end mode

RESULTS:
On every update the vector is re-read in its entirety

EXPECTED RESULTS:
Only the newly added samples are read
Comment 1 Andrew Walker 2009-06-04 01:39:58 UTC
This problem was originally encountered by a user creating a custom datasource, but they then realised it was a more general problem.
Comment 2 Andrew Walker 2009-06-04 02:41:41 UTC
It appears that this bug has been around for a long time, and was probably introduced in revision 365687, where there was no consideration made for reading only the first sample of each new frame.
Comment 3 Andrew Walker 2009-06-04 02:44:01 UTC
SVN commit 977386 by arwalker:

BUG:195163 ensure we request to read only the necessary samples of an updated datasource file

 M  +10 -4     kstrvector.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=977386