Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.First time visiting? Here are some places to start:
- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
[FS} Speed of functions defined in versioned document versus same document
Is there a reason to expect a performance boost when calling a function from an imported versioned document as opposed to importing from another file in the same document?
As an example, I copied a low-level function (`project`) from the FS stdlib into my document and renamed it 'local_project'. The profiler shows that calling 'local_project' is nearly twice as slow as calling the one in stdlib, despite no modifications. Is there a reason to expect this, and does it imply that I could get better performance by refactoring code into separate documents?