This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | aimacintyre |
|---|---|
| Recipients | aimacintyre, christian.heimes, rhettinger |
| Date | 2008年06月03日.11:35:39 |
| SpamBayes Score | 0.00026694423 |
| Marked as misclassified | No |
| Message-id | <1212492947.58.0.743577395905.issue3029@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
Freelist clearing functions for int and float were added by Christian, and made available to Python code via a function in the sys module. I don't know who added the freelist clearing functions for the class, frame, method, tuple and unicode objects, but they are called by gc.collect(). Because the freelist implementations are all static to the relevant type source files, functions within each object source file seem a reasonable way of implementing the required functionality. I don't see the need for them to be part of the public API, but I framed this patch to fit in with what's already in place. It is likely that the functionality of this patch is of minor value, and can thus be rejected. Indeed, I experimented with ripping out all freelists and making sure that all types used PyMalloc, and the resulting interpreter is about 6-8% slower on a pybench run (FreeBSD 7.0, gcc 4.2.1, 6% slower on 32bit, 8% slower on 64bit, 64bit is ~15% faster than 32bit in either case) than the trunk (r63501). Individual micro-benchmarks in pybench show 15-30% variations between the freelist & no freelist, but this doesn't seem to significantly affect the running of the whole benchmark. Issue 2862 is more important IMO, as the current situation has 2 different approaches to accessing freelist management, where I believe there should only be 1. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年06月03日 11:35:48 | aimacintyre | set | spambayes_score: 0.000266944 -> 0.00026694423 recipients: + aimacintyre, rhettinger, christian.heimes |
| 2008年06月03日 11:35:48 | aimacintyre | set | spambayes_score: 0.000266944 -> 0.000266944 messageid: <1212492947.58.0.743577395905.issue3029@psf.upfronthosting.co.za> |
| 2008年06月03日 11:35:45 | aimacintyre | link | issue3029 messages |
| 2008年06月03日 11:35:43 | aimacintyre | create | |