Closed jbfaden closed 2 months ago
Note copy(SortDataSet(ds,s)) is fast and should be used to reimplement parts of applyIndex.
I've made it so that copy(SortDataSet(ds,s)) is used.
There's probably an issue, which would have been there before as well, where longs used to store TT2000s are converted to doubles. This should be checked on as well.
I experimented with some end-of-the-day time supporting Longs through this commonly-used operation. I'll start a new ticket for this: https://github.com/das-developers/das2java/issues/112
Ops.applyIndex is surprisingly slow in a case where Autoplot's getDataSets method is used to sort data read in. The sort of 80000 timetags is done in 30ms, but the applyIndex operator used to resort the data takes 15 seconds.
Here's an Autoplot script to demo: