Re: [HACKERS] ArrayLists instead of List (for some things) - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: [HACKERS] ArrayLists instead of List (for some things)
Date
Msg-id CAMsr+YHf9i7HUT6Fd4CeVjQZezNSE9kaNNU3yjx8t9FSntspPg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] ArrayLists instead of List (for some things)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2 November 2017 at 22:17, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> David Rowley <david.rowley@2ndquadrant.com> writes:
>> Comments on the design are welcome, but I was too late to the
>> commitfest, so there are other priorities. However, if you have a
>> strong opinion, feel free to voice it.
>
> I do not like replacing Lists piecemeal; that's a recipe for ongoing
> API breakage and back-patching pain.  Plus we'll then have *four*
> different linked-list implementations in the backend, which sure
> seems like too many.
>
> We've jacked up the List API and driven a new implementation underneath
> once before.  Maybe it's time to do that again.

I know some systems use hybrid linked array-lists, where linked list
cells are multi-element.

https://en.wikipedia.org/wiki/Unrolled_linked_list

I don't have much experience with them myself.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: [HACKERS] ArrayLists instead of List (for some things)
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] ArrayLists instead of List (for some things)