FlexSim takes a long time to process

FlexSim takes a long time to process

tsuji_ryusuke
Explorer Explorer
16 Views
3 Replies
Message 1 of 4

FlexSim takes a long time to process

tsuji_ryusuke
Explorer
Explorer

[ FlexSim 22.0.5 ]

The customer creates an object by referring to the global table information of about 450,000 rows.

I am trying to increase the processing speed by hiding the Model tab, but it still takes time.

The attached sample model is a model that reproduces the fact that it takes time.


Is there any effective measure to increase the processing speed?

LargeGlobalTabledata.fsm

0 Likes
Accepted solutions (1)
17 Views
3 Replies
Replies (3)
Message 2 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You're creating 450000 tokens you don't need - just use a code snippet with a loop in a CustomCode instead:


Table t=Table("GlobalTable1");
Object box=Model.find("Tools/FlowItemBin/Box/1");
Object newbox;
for (int n=t.numRows;n>0;n--) {
    newbox=createcopy(box,model());
    newbox.row=n;
}
0 Likes
Message 3 of 4

tsuji_ryusuke
Explorer
Explorer

@Jason Lightfoot ,

It turns out that creating unnecessary tokens takes time.

Thank you for your advice!

0 Likes
Message 4 of 4

joerg_vogel_HsH
Mentor
Mentor
A token contains some data nodes. Those nodes are increasing a consumption of RAM space in a computer system. RAM is a limited resource in a system. Data is transferred from RAM to a CPU Core, which takes time, too. If you can limit consumption of RAM and Core processing time by not creating unnecessary data, a model runs faster.
0 Likes