Integration with garbage collectors

Camm Maguire camm at maguirefamily.org
Thu Jun 26 21:06:03 UTC 2014


Greetings!  The docs indicate that GMP memory allocation functions might
be profitably integrated with garbage collectors for efficiency
purposes.  Is there a known example of gains achieved in this area?

I have attempted several ideas in GCL centered around caching
to-be-freed integers during garbage collection sweep for subsequent use
in the allocator.  The gc overhead might be worth it, but for the
additional cost that the allocator will allocate anyway if the cached
integer is too small, which is not rare in practice when simply using
the cache in a fifo manner.  Sorting and indexing by size is way too
expensive.

Take care,
-- 
Camm Maguire			     		    camm at maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah


More information about the gmp-devel mailing list