03-22-2018 11:51 AM
If you change the default TDMS behavior from Open to Open(Read Only) you should see an improvement.
mcduff
03-23-2018 03:19 AM
I think the Read TDMS is so slow since it will allocate a lot of memory.
AFAIK., the Advanced TDMS function allow reading chunks. I'm not using TDMS a lot though.
Reading 1 X 100 MB is a lot slower then 100 X 1 MB...
03-23-2018 10:16 AM
wrote:
1) Parallelization not helping? This surprises me as the code itself doesn't have a loop to loop variability. It should have a significant boost in speed if you have more than 2 cores. There is one exception that if the loops run so fast, that parallelization overhead actually slows things down. If this is the case, I doubt the for loop itself takes any time at all.
The loop code here is extremely skinny while parallelization requires significant work to split the data and reassemble the results in the right order for the output.. It does not surprise me that there is no parallelization advantage here. Use the parallelization for loops that do heavy lifting.