2 Feb 2010 18:40
Re: Problems with GC_size_map
Hi, Juan Jose Garcia-Ripoll <juanjose.garciaripoll@...> writes: > On Tue, Feb 2, 2010 at 1:37 AM, Bruce Hoult <bruce@...> wrote: > >> On Tue, Feb 2, 2010 at 12:51 PM, Juan Jose Garcia-Ripoll >> <juanjose.garciaripoll@...> wrote: >> > In general I am worried that the garbage collector is performing rather >> bad >> > for a simple problem in which one builds and quickly discarding bignums >> -- >> > pointerless memory, by the way --. Profiling shows that 80% of the time >> is >> > spent in the mark phase. >> >> You are not allocating the bodies of the bignums using GC_malloc_atomic()? >> > > Of course I am. The whole bignum is a huge chunk of atomic memory, including > a few words for the structure of the datatype and the rest full of bits that > represent the bignum, using GMP. Other people have verified this behavior, > not only in OS X but also in Linux. I have tried both with and without > incremental garbage collection. If you have a simple test case, I’d be happy to adapt it and test it on Guile since have a similar setup, using GMP as well. Thanks, Ludo’.
RSS Feed