get clips names : why is it so slowww ?
Posted: Tue Nov 03, 2009 11:06 am
please download this live project : http://dl.getdropbox.com/u/174493/getCl ... roject.zip
it contains a MFL device "getClipsNames.amxd" (in track 1)
This very simple device fills a jit.cellblock with clips names from the 8 firsts tracks and 8 firsts scenes + reports the time it took to complete this operation..
a couple of observations :
1) the more clips there are in a project, the more time it takes to get 64 clips names
- in the first project "getClipsNames 64 clips" (8 tracks - 8 scenes = 64 clips)
here on my macpro, it takes ~ 100 ms to get 64 clips names
- with "getClipsNames 800 clips" project (8 tracks - 100 scenes = 800 clips) = ~180 ms
- with "getClipsNames 8000 clips" project (8 tracks - 1000 scenes = 8000 clips) = > 1000 ms
the device getClipsNames.amxd gets only the 64 firsts clips names, but the biggest the Live project is, the more time it takes to do it's job.
2) live.path is the problem
let's disconnect live.path from the live.object that gets clips names :
in the device getClipsNames.amxd, double clip the patcher "p getClipsNames" , and click on the graphic gate to disconnect live.object.
now, the patch only gets devices ids, but do not get clips names :
it takes almost the same amount of time
so : the bottleneck seems to be live.path getting clips ids, not live.object getting clips names..
3) edit this device in max, and click on the button to get clips names : it will multiply the time needed to complete the operation by 5...
and it will probably crash max if you do it a couple of times, in a big project containing many clips...
so, the question is :
is there a better way to get clips ids ?
or is it a bug, or will it be improved / optimized in a futur version ?
any tips is welcome !
thanks in advance
MathieU
it contains a MFL device "getClipsNames.amxd" (in track 1)
This very simple device fills a jit.cellblock with clips names from the 8 firsts tracks and 8 firsts scenes + reports the time it took to complete this operation..
a couple of observations :
1) the more clips there are in a project, the more time it takes to get 64 clips names
- in the first project "getClipsNames 64 clips" (8 tracks - 8 scenes = 64 clips)
here on my macpro, it takes ~ 100 ms to get 64 clips names
- with "getClipsNames 800 clips" project (8 tracks - 100 scenes = 800 clips) = ~180 ms
- with "getClipsNames 8000 clips" project (8 tracks - 1000 scenes = 8000 clips) = > 1000 ms
the device getClipsNames.amxd gets only the 64 firsts clips names, but the biggest the Live project is, the more time it takes to do it's job.
2) live.path is the problem
let's disconnect live.path from the live.object that gets clips names :
in the device getClipsNames.amxd, double clip the patcher "p getClipsNames" , and click on the graphic gate to disconnect live.object.
now, the patch only gets devices ids, but do not get clips names :
it takes almost the same amount of time
so : the bottleneck seems to be live.path getting clips ids, not live.object getting clips names..
3) edit this device in max, and click on the button to get clips names : it will multiply the time needed to complete the operation by 5...
and it will probably crash max if you do it a couple of times, in a big project containing many clips...
so, the question is :
is there a better way to get clips ids ?
or is it a bug, or will it be improved / optimized in a futur version ?
any tips is welcome !
thanks in advance
MathieU