Using Labels vs. global table for 20+ variables?

Using Labels vs. global table for 20+ variables?

hai_l2
Not applicable
5 Views
2 Replies
Message 1 of 3

Using Labels vs. global table for 20+ variables?

hai_l2
Not applicable

[ FlexSim 20.1.2 ]

When I need to track 20+ variables, is it better to use labels or a global table to track them? Ultimately, the data is written into the global table after the 500 steps activity is completed.

Is there a performance hit for having too many labels?

Is it worse than writing to the global table too often?

Thanks,

Hai

Accepted solutions (1)
6 Views
2 Replies
Replies (2)
Message 2 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution
Models are rarely slow because of the number of labels on an object or the number of times you write to a table. It seems unlikely that one approach over the other will be noticeably different. Most models have hundreds or thousands of items or tokens, all of which have 20+ labels, and it is not a problem. Many models also write to global tables thousands of times without noticing a speed difference. Usually, writing values, either to a label or to a table, is a very tiny percentage of what the CPU needs to do to run a simulation.
.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 3 of 3

hai_l2
Not applicable

Thank you.. without knowing the internal, it is hard for me to guess which is better. Thanks!

0 Likes