[pypy-svn] r57858 - pypy/branch/cross-compilation/pypy/doc/discussion
fijal at codespeak.net
fijal at codespeak.net
Fri Sep 5 15:19:44 CEST 2008
Author: fijal
Date: Fri Sep 5 15:19:42 2008
New Revision: 57858
Added:
pypy/branch/cross-compilation/pypy/doc/discussion/gc-memory-notes.txt (contents, props changed)
Log:
a bit random notes how to benchmark memory usage
Added: pypy/branch/cross-compilation/pypy/doc/discussion/gc-memory-notes.txt
==============================================================================
--- (empty file)
+++ pypy/branch/cross-compilation/pypy/doc/discussion/gc-memory-notes.txt Fri Sep 5 15:19:42 2008
@@ -0,0 +1,30 @@
+Some random notes about memory-saving GCs
+=========================================
+
+Possibilities:
+
+* squeak-like mark-compact collector
+
+* deferred refcounting strategy
+
+* deferred refcounting with a nursery
+
+Tests:
+
+We need to decide size of tests. ie how much interpreter size
+matters.
+
+Also we need to decide what exactly we mean by "memory footprint".
+avg, min or max size?
+
+Also, suggestions include:
+
+* allocate objects all the time, but total number of objects stay constant
+
+* allocate objects in bursts and immediately throw them away
+
+* have small number of live objects and from time to time burst allocate
+ ton of them and throw them away
+
+I think we need some kind of graph which shows how exactly this grows with
+number of objects.
More information about the Pypy-commit
mailing list