Support Board
Date/Time: Wed, 27 Nov 2024 04:22:50 +0000
Post From: Best load time (passing interface references as funcion arguements vs direct access)
[2024-08-31 13:03:16] |
User907967 - Posts: 54 |
Hi, I'd like to gauge your thoughts on optimising a study using many subgraphs with 20+ functions. By 'optimise', I mean decreasing as much as possible the number of milliseconds it takes the script to load. Option 1: Using function arguments, I could try to carry over all the subgraph calls from one function to another. void AAA(SCSubgraphRef Subgraph_XXX, SCSubgraphRef Subgraph_YYY){
// Do work here } Option 2: I could access the subgraphs directly using the below from each function that needs to access subgraphs. void AAA(){
SCSubgraphRef XXX = sc.Subgraph[0]; SCSubgraphRef YYY = sc.Subgraph[1]; // Do work here } These options will not make much difference on a small scale, especially with today's CPU performance. Still, if one wishes to load 3-4 years of data, then I expect one option to be more efficient than the other and the difference to be noticeable. I appreciate any help you can provide. Date Time Of Last Edit: 2024-08-31 13:05:23
|