Re: equal() perf tweak

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: equal() perf tweak
Дата
Msg-id 87llqugway.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Re: equal() perf tweak  (Gaetano Mendola <mendola@bigfoot.com>)
Ответы Re: equal() perf tweak  (Gaetano Mendola <mendola@bigfoot.com>)
Список pgsql-patches
Gaetano Mendola <mendola@bigfoot.com> writes:
> Why instead of reinvent the whell not use, or at least do a "C" port of
> stl::list ?

Because (a) implementing a linked list is pretty trivial (b) the only
difficult part is getting the semantics / API right. I don't see how
std::list would help with (b), and (a) negates the benefit of
importing the code from elsewhere.

We'd also have to gut std::list, since we wouldn't be able to make use
of C++ templates.

That said, if you know of any specific techniques from std::list
implementations that would be useful, please let me know.

> PS: My 2 cents: I don't like too much have the lenght inside the list
> struct.

Why not?

-Neil


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

Предыдущее
От: Gaetano Mendola
Дата:
Сообщение: Re: equal() perf tweak
Следующее
От: ljb
Дата:
Сообщение: (repost) pgtcl: restore 8.0 compatibility for large obj fix