⇤ ← Revision 1 as of 2008-11-15 02:34:16
642
Comment:
|
646
|
Deletions are marked like this. | Additions are marked like this. |
Line 14: | Line 14: |
Our algorithms are not always the problem, sometimes it's memory allocations that slow you down | Our algorithms are not always the problem, sometimes it's memory {de}allocations that slow you down |
Performance Enhancements Resources
Jython benchmarks (from PyPy's suite): http://freya.cs.uiuc.edu/~njriley/benchmark.html
Benchmark plots (currently broken): http://freya.cs.uiuc.edu/~njriley/plots.html
Ideas
GC Expense
Our algorithms are not always the problem, sometimes it's memory {de}allocations that slow you down
Frame creation
Frames are allocated for every Python method call, which is a GC expense. CPython (and JRuby?) recycle frame objects. Reducing the number of fields on the frame can also help (but this likely isn't possible)