| От | 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
|
| Список | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера