Add component to simulation with uri

Hi,

I Am using “comp=app.load(uri)” to add new components to my simulation. I am using a for-loop to add a component several timers. Because of the time useage, I have measured the time it uses to load components from uri. Mostly it takes seconds, but there are always one component that takes longer to load.

Result from measuring time:
Time spent loading component LockHolder #101 : 00:01
Time spent loading component LockHolder #102 : 00:01
Time spent loading component LockHolder #103 : 00:01
Time spent loading component LockHolder #104 : 00:01
Time spent loading component LockHolder #105 : 05:56
Time spent loading component LockHolder #106 : 25:16
Time spent loading component LockHolder #107 : 00:06
Time spent loading component LockHolder #108 : 00:05
Time spent loading component LockHolder #109 : 00:05

The uri typically looks like: “C:\Users\myName\OneDrive\Documents\Visual Components\4.4\My Models\LockHolder.vcmx”

Why does it take so long time?

Thank you!

Something to do with the OneDrive sync? Try from a normal local folder.
Also copying a component would be much faster than loading it again and again.