summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qabstracttransition_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-03-20 14:20:16 +0100
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-05-04 12:49:22 +0000
commitbd15b23987e9d6d1f42fa8987e5c1ff5a1eeee8b (patch)
tree7919aa6d1f17e82feed22a52d5c9a36fc9c7a681 /src/corelib/statemachine/qabstracttransition_p.h
parente445f3c47bea3e2d3dffa1215b24cb90dccd8c73 (diff)
QStateMachine: cache expensive calculations.
As nothing changes in the state machine when selecting transitions for events and then calculating the exit- and entry-sets, some calculations can be cached. The exit set for a transition was calculated multiple times. First in removeConflictingTransitions, where the two loops would each calculate them multiple times. Then secondly in microstep(), which would calculate the exit set for all transitions. Transition selection, exit set calculation, and entry set calculation all calculate the transition domain and effective target states for transitions. Change-Id: I217328a73db2f71e371eb5f60a0c7b222303f0ca Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/corelib/statemachine/qabstracttransition_p.h')
0 files changed, 0 insertions, 0 deletions