Hi everyone,
I need to batch-process 450 different regions. For each region, I generate from node ids an RBE2.
With a Python solution (hm.Collection), this operation is very slow : for a sample of "only" 85 regions, the process takes 160 seconds (around 3 minutes) and usesa lot of RAM.
However, using TCL marks in Python (with hw.evalTcl) in an equivalent source code takes only 3 seconds for this 85 regions !
Why this difference ?
To accelerate my "full-Python" code, I think I need to stop creating a collection on each iteration of the loop. Instead, I should empty the list of node ids and fill it once again with new ids for the next item in the loop. How can I do this, efficiently ?
Thanks