Re: Double linked list with one pointer

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Double linked list with one pointer
Date: 2003-12-07 03:27:59
Message-ID: 3FD29E3F.7030303@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:

>Gaetano Mendola wrote:
>
>
>>I don't think the article is available online, alas, but you can find some
>>related source code demonstrating the technique at:
>>
>> http://www.semantics.org/tyr/tyr0_5/list.h
>>
>>
>
>That certainly is an amazing idea. You know the pointer you are coming
>from so you can XOR to find the next pointer.
>
>I agree with a Tom that we don't have much use for double-link lists,
>but is a nice idea.
>
>

I must confess that it strikes me as a really really horrid and ugly
hack - very likely to be error-prone and non-portable and undebuggable,
and for almost no saving worth having. But maybe that's just me.

In general I've been impressed with the quality of Pg code over the last
6 months or so - I'd hate to see it polluted by something like this.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2003-12-07 03:36:14 Re: IDENT and IPv6 (was Re: [GENERAL] pg_hba.conf
Previous Message David Fetter 2003-12-07 01:53:07 Double Backslash example patch