Hi @abottero! Your question intrigued me, because I once had a very similar project where I wrote a similar script (though in Cubit, not Trelis). I copied your script and tried running it in Trelis 17.1 and I don’t seem to have the performance issues you’ve mentioned, though I did notice a bit of a difference between my workstation and Surface Book. I put timers around some of the critical sections, see my times and intermediate results on my workstation:

In all, your script runs in about 21 seconds for me. This has me wondering whether an update to the recently released Trelis version 17.1 might be a solution for you.
Additional notes, I’ve noticed that setting
echo off
info off
undo off
seems to help with performance if I’m accessing Trelis over a remote connection (first two commands), while definitely helping (last command) with performance when my current directory (temp-file save location) is on a network drive.





