Re: Performance optimization of btree binary search

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Performance optimization of btree binary search
Дата
Msg-id 15883.1386257656@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Performance optimization of btree binary search  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: Performance optimization of btree binary search  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-hackers
Andres Freund <andres@2ndquadrant.com> writes:
> I was actually thinking about making Datum (and some other types we
> have) structs or unions. Currently it's far, far to easy to mix them. We throw
> away pretty much all of the little typesafety C has by typedef'ing them
> to integral types with lots of autocasting behaviour.

That's intentional; on many ABIs, making Datum a struct would be
catastrophic performance-wise because it would not be eligible for simple
register pass or return conventions.  In any case, the number of bugs
I can remember that such a thing would've prevented is negligible.
        regards, tom lane



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

Предыдущее
От: Kohei KaiGai
Дата:
Сообщение: Re: shared memory message queues
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: variant of regclass