-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Significant perf. improvement but breaks compat.
* Modified decorator syntax to add a decorator around state enter/leave methods. These methods must now be decorated with @state.enter and @state.leave. * The @State, @state.enter, @state.leave, and @transition decorators now register their methods with the state instance called from the decorator. (This state is detected by inspecting the Python call stack). * Modified the pysm translator to use the new decorators. * Removed the _getlocals() and _getsomelocals() functions from decorator.py since they are no longer needed. * Modified smTest.py and pysmTest.pysm to use the new enter/leave decorators and to no longer test the _getlocals() and _getsomelocals() utilities. With these changes, the profiler reports SuckNDrop Toolglass instantiation times decreasing from 5-6 seconds to about a tenth of a second. git-svn-id: https://www.lri.fr/svn/in-situ/code/PythonStateMachines/trunk@1663 2173f847-0edd-4382-bdcc-49b71dc1bf57
- Loading branch information
eaganj
committed
May 5, 2010
1 parent
ef8def3
commit 9c837c4
Showing
5 changed files
with
108 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters