[PATCH] Accurate count of freed cells

2005-12-20 Thread Ludovic Courtès
Hi, The patch below fixes the way freed cells are counted in `scm_i_sweep_card ()'. Basically, without this patch, FREE_COUNT is incremented regardless of whether the cell pointed to by SCMPTR was already free or not. Thanks, Ludovic. 2005-12-20 Ludovic Courtès <[EMAIL PROTECTED]> *

[PATCH] GC code cleanup

2005-12-20 Thread Ludovic Courtès
Hi, The patch below is an attempt to clean up the GC by limiting the use of global variables for statistics. IMO it makes it easier to read the code. Furthermore, it's also easier to track the exact number of cells swept/collected at each stage. It also fixes (unless I'm mistaken!) the computat

GC improvements

2005-12-20 Thread Ludovic Courtès
Hi, I did some profiling with the workload I described earlier[0]. When using the three patches I sent recently[*], around 35% of the execution time is spent in memory management: % cumulative self self total time seconds secondscalls s/call s/cal