I'm using BLT Vectors with large amounts of data (> 2million points)
I want to take a subset of that data ~2 million points, but it's taking longer than I think it should...I expect that there is a more efficient way.
#xtimedata and ytimedata are the original 2million + vectors
#find the data in the xtimedata vector within $min and $max
set inrange [xtimedata search $min $max]
set first [lindex $inrange 0]
set last [lindex $inrange end]
blt::vector create yinrange
blt::vector create xinrange
yinrange set [ytimedata range $first $last]
xinrange set [xtimedata range $first $last]
Doing this, takes about 10 seconds...a long time for a gui...
Is there a better way?
Michele
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using BLT Vectors with large amounts of data (> 2million points)
I want to take a subset of that data ~2 million points, but it's taking longer than I think it should...I expect that there is a more efficient way.
#xtimedata and ytimedata are the original 2million + vectors
#find the data in the xtimedata vector within $min and $max
set inrange [xtimedata search $min $max]
set first [lindex $inrange 0]
set last [lindex $inrange end]
blt::vector create yinrange
blt::vector create xinrange
yinrange set [ytimedata range $first $last]
xinrange set [xtimedata range $first $last]
Doing this, takes about 10 seconds...a long time for a gui...
Is there a better way?
Michele