question

Noah Z avatar image
2 Likes"
Noah Z asked Matthew Gillespie edited

Unused PeopleTables Stat Collectors slowing down model

After upgrading to 19.2 a model I'm working on got significantly slower to run. I enabled code profiling to see what was going on and it looks like the 4 biggest culprits are all related to "PeopleTables" history which I did not add and will not need for this model.

Is there a way to turn these off so that the model runs faster without breaking Flexsim? They don't show up under Stats Collectors within the Toolbox.

FlexSim 19.2.0
tablescode profilerpeopletable
· 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.

1 Answer

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Matthew Gillespie edited

You can run this script to turn them all off:

  1. treenode tables = Model.find("Tools/PeopleTables");
  2. for(int i = 1; i <= tables.subnodes.length; i++) {
  3. tables.subnodes[i].find(">variables/replacements/Enabled").value = 0;
  4. function_s(tables.subnodes[i], "onApply");
  5. }

You can also find them in the Toolbox under People Statistics Tables and turn them off by right clicking on a table and selecting Enabled.

· 3
5 |100000

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