Message157016
floatobject.c has its own block allocator. This appears to be ancient, from before the time when obmalloc.c was invented.
This patch removes this allocator and puts an upper limit on the freelist of floats. The purpose of this is to reduce memory fragmentation, since blocks used for floats cannot be used for anything else in python. These blocks tend to stay around for a long time, it is sufficient for one float from each of the 1k blocks to be alive to keep that block present in memory forever.
It is the presence of the fast freelist that is the performance enhancer here, not the fast block allocator. |
|
Date |
User |
Action |
Args |
2012-03-29 09:54:10 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
2012-03-29 09:54:09 | kristjan.jonsson | set | messageid: <1333014849.93.0.173252206175.issue14435@psf.upfronthosting.co.za> |
2012-03-29 09:54:09 | kristjan.jonsson | link | issue14435 messages |
2012-03-29 09:54:09 | kristjan.jonsson | create | |
|