Re: [PATCH 3/9] Add memory pool library
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jun 24, 2010, 18:43 UTC
- Message-ID
- <AANLkTilItX_xbbpX9mfKg0Dfx6ThzYuVsBu25C_-fJ6W@mail.gmail.com>
- In-Reply-To
- <20100624105339.GC12376@burratino>
Hi Jonathan,
Jonathan Nieder wrote:
> From: David Barr <david.barr@cordelta.com> > > Add a memory pool library implemented using C macros. The obj_pool_gen() > macro creates a type-specific memory pool API.
Until some sort of mmap is implemented, I doubt we can do much better than this. By marking all the generated functions MAYBE_UNUSED, we're actually suppressing more warnings than intended. Maybe we can avoid it and somehow find a way to mark only those functions that are really unused? Perhaps an extra parameter in obj_pool_gen?
-- Ram