Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong interpretation of MAX_VISIBLE_LIBRARY_HIERARCHY #22

Open
sebastian-brunner opened this issue Jul 9, 2019 · 2 comments
Open

Wrong interpretation of MAX_VISIBLE_LIBRARY_HIERARCHY #22

sebastian-brunner opened this issue Jul 9, 2019 · 2 comments

Comments

@sebastian-brunner
Copy link
Member

sebastian-brunner commented Jul 9, 2019

For the statemachine: unit_test_state_machines/deep_libraries/library_middle2

It has 33 States (library state instances count as two states, one for the library wrapper and one for the state_copy).

If MAX_VISIBLE_LIBRARY_HIERARCHY is set to 3 than all 33 Models for the states are loaded, which is correct. 3 levels of hierarchies are shown if a show-flag is enabled, which is also correct.

If MAX_VISIBLE_LIBRARY_HIERARCHY is set to 2 also all 33 Models for the states are loaded as well, which is wrong! Only 2 levels of hierarchies are shown if a show-flag is enabled, which is actually correct. Thus, a lot of models are created, but not shown using the show flag.

For bigger state machines, this drastically increases the loading time by a factor of FOUR!
E.g. for the unit_test_state_machines/deep_libraries/sm with deepest libraries!

For our LRU state machines, this is even worse!

@sebastian-brunner
Copy link
Member Author

sebastian-brunner commented Jul 9, 2019

We should also refactor the MAX_VISIBLE_LIBRARY_HIERARCHY variable: currently it is some mixture between hierarchy and library levels.

My desired behavior would be the following:

  • If MAX_VISIBLE_LIBRARY_HIERARCHY is set to 0 and I click the show flag, nothing should be shown.
  • If MAX_VISIBLE_LIBRARY_HIERARCHY is set to 1 and I click the show flag, I can see the content of this library but the content of its child libraries is hidden.
  • If MAX_VISIBLE_LIBRARY_HIERARCHY is set to 2 and I click the show flag, I can see the content of this library, the child libraries, but NOT the grand-child libraries.
    etc.

In fact, setting the MAX_VISIBLE_LIBRARY_HIERARCHY to 3 (in my new proposed convention 2) is the main use case in my experience.

@sebastian-brunner
Copy link
Member Author

I am currently working on the internal issue 558. See branch feat/decrease_loading_time_internal_558

As this issue is not directly related, it can be analyzed in parallel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant