On Fri, Nov 25, 2005 at 04:25:03AM -0800, Leopold Toetsch wrote:
> There are about 10 such lists around, which could be unified easily. The 
> current code is suboptimal anyway, because resizing is done by 1 mostly.
> Some of the lists allocate ptr space and items, which can also be 
> simplified and reduces indirection by one.
> 
> Therefore the job would be to replace *gradually* all these lists by a 
> common interface.

I heartily endorse this product and/or service.

There exist tricks for making the macros in such a way that one node
can be on *multiple* lists.  Mostly they consist of having multiple
low-level nodes structures in a single high-level node, then doing
pointer arithmetic with offsetof() to move from the base of the
high-level node to/from the base of the low-level node(s).  That's
something I would very much like to see.

(Damn, sometimes I really do wish for C++ again.  This is such a
template thing.)
-- 
Chip Salzenberg <[EMAIL PROTECTED]>

Reply via email to