Using the profiler and also just putting print statements in I found that I am having trouble with rodCreateRect taking longer and longer to process. I have some very simple code:
for(i 0 Nx
for(j 0 Ny
<compute X & Y>
rodCreateRect(?cvId Cv ?layer LPP ?bBox <Computed from X and Y by a simple linear formula>)
);End for j
);End for i
This is such a simple code segment but when you have 700 or 800 rectangles to place on each inner loop, things are slowing down to the point that it takes hours to get throught this. I realize that every time you create an object it has to add it to a large data structure, but is there no way to do this? I cannot use the array or mosaic functions because the array is not cartesian.
Anyone have any ideas about how to speed this up?
I didn't see if anybody suggested rodFillBBoxWithRects(), did you happen to try this at all? This might be beneficial - the rectangles will be regular rects with no "RODiness" to them, hence less overhead, and hopefully quicker too?