question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Joerg Vogel commented

FlexSim takes a long time to process

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

FlexSim 22.0.5
global tableperformance
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Joerg Vogel commented

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;
}
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryusuke T avatar image Ryusuke T commented ·

@Jason Lightfoot ,

It turns out that creating unnecessary tokens takes time.

Thank you for your advice!

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Ryusuke T commented ·
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 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.