News for hackers. Stuff that matters.
Re:Notes by djb on using Fil-C (2025) by brucehoult on Sunday November 02, 2025 @06:48PM (#45794456)
I almost always find that building Boehm GC as a malloc replacement (malloc() -> GC_malloc(), free() -> NOP), and then using LD_PRELOAD to get it used makes any random C/C++ program not only still work but also run faster.

Not only that, but you can then use GC_FREE_SPACE_DIVISOR to tune RAM usage vs speed to your liking on a program by program (or even instance by instance) basis, something completely impossible with malloc().

There are no comments on this comment yet.