das-developers / das2java

The original das2 library. Provides interactive publication-ready 2-D plotting
https://das2.org
GNU Lesser General Public License v3.0
4 stars 0 forks source link

actions in SpectrogramRenderer call bundle and regex stuff during rebin operation, possibly causing slow application #93

Open jbfaden opened 6 months ago

jbfaden commented 6 months ago

I'm working on a script which is hanging for 10s of seconds and jstack shows that it is calling regex and safename operations as it rebins. This makes no sense and probably wasn't anticipated. This needs to be studied.

I'm attaching two stack dumps from the current version of Das2.

jbfaden commented 6 months ago

jstack.zip

jbfaden commented 6 months ago

It looks like if a table is both a spectrogram (having DEPEND_1) and a bundle (having BUNDLE_1), then it will use the bundle dataset for weightsDataSet. This causes things to work very slowly, because the assumption that it's a small number of datasets (X,Y,Z for example). Here I have 5000+ bundled datasets.

jbfaden commented 6 months ago

See sftp://jfaden.net/home/jbf/project/voyager/git/u/bill/20231219/analysisSaveBug93.jy