3 ms·
Pools are great. They work really well with servers of all kinds. Even better are pool allocators that support subpools, and adding arbitrary objects that can
by rwmj 11y ago
Pools are great. They work really well with servers of all kinds. Even better are pool allocators that support subpools, and adding arbitrary objects that can be closed/deleted with the pool (like files). Eons ago I wrote a nice little C pool allocator: http://git.annexia.org/?p=c2lib.git;a=blob;f=pool.h;h=f8ed4c463d3ca29f55aef1aa6e484b0a1b21e12c;hb=HEAD http://git.annexia.org/?p=c2lib.git;a=blob;f=pool.h;h=f8ed4c...