[rucksack-devel] Compacting the heap?

Arthur Lemmens alemmens at xs4all.nl
Sun Jun 3 16:20:34 UTC 2012


John Pallister <john at synchromesh.com> wrote:

> I'm going to write a routine to periodically copy all the remaining
> objects from one store to an empty store with the same schema, then
> switch to using the new store. This will hopefully compact the heap
> and rebuild the indexes, thereby improving performance.
>
> As I understand it, there's no manual GC operation in the Rucksack
> API.

I haven't looked at this for years, but have you tried COLLECT-GARBAGE?
This will not rebuild any indexes, but it should get rid of objects
that aren't referenced anywhere.  I have no idea if this will also
result in improved performance, though.

Arthur




More information about the rucksack-devel mailing list