Re: [HACKERS] ArrayLists instead of List (for some things)
От | Craig Ringer |
---|---|
Тема | Re: [HACKERS] ArrayLists instead of List (for some things) |
Дата | |
Msg-id | CAMsr+YHf9i7HUT6Fd4CeVjQZezNSE9kaNNU3yjx8t9FSntspPg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] ArrayLists instead of List (for some things) (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | 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 по дате отправления: