Hi everyone,
The more code my VB component has the longer it takes to open it.
My script is now so big it takes 45 seconds (!) to open.
It is getting difficult to work because I need to execute the script about every minute to view results.
Is this normal?
Thanks!
Fernando
David Rutten
Hi Fernando, I never use very large scripts in components as I find it cumbersome to write them. I typically switch to Visual Studio when having to write lots of code.
It shouldn't take a long time to open large scripts though. The first time you open the script editor it will probably take a few seconds as the code editor needs to be JIT-compiled, but after that it should be fast. If it isn't, it may well be my fault.
Can you upload (or email) a file with such an annoying script? I can see whether it takes a long time on the internal build as well and I might be able to find the bottleneck.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Mar 28, 2013