Re: Pre-alloc ListCell's optimization

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Pre-alloc ListCell's optimization
Дата
Msg-id BANLkTikRa_cbsjOfRh-0Cx=77vR62bLY5g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Pre-alloc ListCell's optimization  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Pre-alloc ListCell's optimization
Список pgsql-hackers
On Thu, May 26, 2011 at 11:57 AM, Stephen Frost <sfrost@snowman.net> wrote:
> Handling the 1-entry case would likely be pretty
> straight-forward, but you need book-keeping as soon as you go to two,
> and all that book-keeping feels like overkill for just a 2-entry cache
> to me.

Incidentally what if I call nconc and pass a second arg of a list that
has the first few elements stashed in an array. Do you copy those
elements into cells before doing the nconc? Does our nconc support
having lists share cells? I suspect it doesn't actually so perhaps
that's good enough.

-- 
greg


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Vaibhav Kaushal
Дата:
Сообщение: Re: Expression Evaluator used for creating the plan tree / stmt ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Expression Evaluator used for creating the plan tree / stmt ?