I was wondering if it's because of the character columns - or because of the new compact columns (to compute the logic in the background). Is it much faster to merge 2x the same table - instead of merging to "different" tables?
no - no - no
dt1 =new table("test",<< add rows(500000));for(I=1, i<=20, i++,
dt1 << new column ("x", Character, set each value(Hex(random Integer(1000000)))););for(I=1, i<=20, i++,
dt1 << new column ("y", Character,Compact set each value(Hex(random Integer(1000)))););
dt2 = dt1 << Subset( All rows, Selected columns only(0));
t0=hptime();
dt1 << Concatenate( dt1);
time=(hptime()-t0)/1000000;print("concat same file: ", time);
t0=hptime();
dt1 << Concatenate( dt2);
time=(hptime()-t0)/1000000;print("concat 2 files: ", time);
Created:
Nov 6, 2024 01:02 AM
| Last Modified: Nov 9, 2024 9:12 AM(576 views)
| Posted in reply to message from hogi 11-05-2024
So from time to time, either delete the Filesscripts - or merge them into one script *)
This will speed up the Concatenate step by orders of magnitude.
Even more important: if you trigger the Update manually: With the new Preview Tab, the strange "processing" has to be done EVERY time again and again: 1) when the Concatenate menu opens
2) when tables are added via Add
3) after clicking on OK
This video illustrates the problem - to make it not extremely boring, I sped it up by reducing the for loop to 50:
Concatenate_slow.mp4
Video Player is loading.
Current Time 0:00
/
Duration 1:22
Loaded: 0.00%
0:00
Stream Type LIVE
Remaining Time -1:22
1x
Chapters
descriptions off, selected
captions settings, opens captions settings dialog
captions off, selected
en (Main), selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
This is a modal window. This modal can be closed by pressing the Escape key or activating the close button.
according to JMP support, the bad performance is no bug, but as expected: TS-00173141
Comparing all the text in all the script in the tables being concatenated takes a long time. It is a lot of information to compare. It is not surprising that the concatenation is so much slower with the large number of table scripts your example tables have.