[Kst] [Bug 89889] New: unused datasources saved in .kst file
nicolas.brisset at eurocopter.com
Mon Sep 20 18:14:01 CEST 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Summary: unused datasources saved in .kst file
AssignedTo: kst kde org
ReportedBy: nicolas.brisset eurocopter com
Version: 1.0.0_devel (using KDE 3.3.0, compiled sources)
Compiler: gcc version 3.3.2
OS: SunOS (sun4u) release 5.8
When using the most excellent "Data->Change data file" feature, I noticed the following problem: all files used at least are remembered and saved in the .kst file, even if they are no longer in use (i.e. no vector depends on them).
This is very much sub-optimal as datasources are instantiated for each of these files, which in some cases can take a lot of time and resources; the expected behavior when saving a plot is to save only the datasources currently in use.
Steps to reproduce in case the explanation is not clear:
1) create a plot with a couple of vars from file1.dat
2) use the "Data->Change data file" feature to select file2.dat as datasource for all the vectors
3) save the plot in test.kst
4) open test.kst in your favorite editor: file1.dat is there, and if you have the chance (!) of having a slow datasource you will clearly notice that a datasource instance is created for file1.dat even though it is useless.
More information about the Kst