User loginNavigation |
Python Optimization SurprisesThis weekend, I took another crack at trimming microseconds off the common-case path for generic function execution, and succeeded in dropping the excution time from 13.2 microseconds to just over 9.8. (Which is about 9 microseconds overhead added relative to a hand-optimized Python version of the same trivial function.) Along the way, however, I realized a couple of surprising things about Python performance tuning. An amusing story that tells you something about Python's implementation. The discussion of closures is of particular interest... |
Browse archives
Active forum topics |
Recent comments
3 weeks 5 days ago
3 weeks 5 days ago
4 weeks 3 hours ago
4 weeks 4 hours ago
4 weeks 5 days ago
4 weeks 5 days ago
4 weeks 5 days ago
7 weeks 5 days ago
8 weeks 4 days ago
8 weeks 4 days ago