Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
fgmacedo
/
python-statemachine
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
113
Star
1.3k
Code
Issues
16
Pull requests
2
Discussions
Actions
Security and quality
4
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
perf: optimize engine hot paths — 5x-7x event throughput improvement
- #592
#592
Merged
fgmacedo
merged 13 commits into
develop
fgmacedo/python-statemachine:develop
from
perf/optimize-hot-paths
fgmacedo/python-statemachine:perf/optimize-hot-paths
Copy head branch name to clipboard
Mar 8, 2026
Conversation
Commits
13
(13)
Checks
Files changed
Merged
perf: optimize engine hot paths — 5x-7x event throughput improvement
#592
fgmacedo
merged 13 commits into
develop
fgmacedo/python-statemachine:develop
from
perf/optimize-hot-paths
fgmacedo/python-statemachine:perf/optimize-hot-paths
Copy head branch name to clipboard
Commits
Commits on Mar 7, 2026
perf: cache State.__hash__ to avoid repeated repr() calls
Show description for 246037f
fgmacedo
committed
246037f
View commit details
Copy full SHA for 246037f
Browse repository at this point
refactor: extract Configuration class to encapsulate state representation
Show description for f1e07d0
fgmacedo
committed
f1e07d0
View commit details
Copy full SHA for f1e07d0
Browse repository at this point
perf: eliminate for_instance() cache — store InstanceState in sm.__dict__
Show description for cdb472a
fgmacedo
committed
cdb472a
View commit details
Copy full SHA for cdb472a
Browse repository at this point
refactor: extract _build_configuration to remove duplication
Show description for 4a2ac88
fgmacedo
committed
4a2ac88
View commit details
Copy full SHA for 4a2ac88
Browse repository at this point
perf: replace logger.debug with cached no-op to eliminate logging overhead
Show description for 65e46e4
fgmacedo
committed
65e46e4
View commit details
Copy full SHA for 65e46e4
Browse repository at this point
perf: change log_cli_level from DEBUG to WARNING
Show description for 9708a09
fgmacedo
committed
9708a09
View commit details
Copy full SHA for 9708a09
Browse repository at this point
Commits on Mar 8, 2026
perf: remove weakref indirection on engine.sm and extract _first_transition_that_matches
Show description for 68f8825
fgmacedo
committed
68f8825
View commit details
Copy full SHA for 68f8825
Browse repository at this point
perf: replace InstanceState weakref+properties with cached __getattr__
Show description for d62d650
fgmacedo
committed
d62d650
View commit details
Copy full SHA for d62d650
Browse repository at this point
test: add thread safety stress tests and document thread safety
Show description for d6ebb61
fgmacedo
committed
d6ebb61
View commit details
Copy full SHA for d6ebb61
Browse repository at this point
perf: avoid intermediate OrderedSet allocations in _prepare_entry_states
Show description for 63bc62b
fgmacedo
committed
63bc62b
View commit details
Copy full SHA for 63bc62b
Browse repository at this point
fix: simplify __setattr__ guard — remove unreachable InstanceState branch
Show description for 1aa8a1b
fgmacedo
committed
1aa8a1b
View commit details
Copy full SHA for 1aa8a1b
Browse repository at this point
docs: add performance and thread safety entries to 3.1.0 release notes
fgmacedo
committed
8ee011e
View commit details
Copy full SHA for 8ee011e
Browse repository at this point
chore: remove tests/benchmarks/README.md
fgmacedo
committed
1847088
View commit details
Copy full SHA for 1847088
Browse repository at this point
You can’t perform that action at this time.