Author: Remi Meier <[email protected]>
Branch: c8-faster-smallobj-sync
Changeset: r1943:29753a525a5f
Date: 2015-08-18 10:26 +0200
http://bitbucket.org/pypy/stmgc/changeset/29753a525a5f/
Log: better comment
Overall, the performance with this branch is mostly unchanged.
However, when rtyping 'pixie', we get ~5% improvement (~3% without
the "pretty full pages" tweak). While I consider these results
inconclusive, the added complexity is pretty small and there may be
more tweaks to be done.
diff --git a/c8/stm/smallmalloc.c b/c8/stm/smallmalloc.c
--- a/c8/stm/smallmalloc.c
+++ b/c8/stm/smallmalloc.c
@@ -328,7 +328,8 @@
}
else {
if (free_slots_balance < 0) {
- /* "pretty full" */
+ /* "pretty full" (>= 50% used), so don't use the page
+ for new allocations until it is at least half-empty again */
page_free->nextpage = pretty_full_pages[szword];
pretty_full_pages[szword] = page_free;
} else {
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit