Re: [PATCH] backend: compare word-at-a-time in bcTruelen
От | Tom Lane |
---|---|
Тема | Re: [PATCH] backend: compare word-at-a-time in bcTruelen |
Дата | |
Msg-id | 13985.1245162236@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: [PATCH] backend: compare word-at-a-time in bcTruelen (Greg Stark <gsstark@mit.edu>) |
Ответы |
Re: [PATCH] backend: compare word-at-a-time in bcTruelen
Re: [PATCH] backend: compare word-at-a-time in bcTruelen Re: [PATCH] backend: compare word-at-a-time in bcTruelen |
Список | pgsql-hackers |
Greg Stark <gsstark@mit.edu> writes: > On some architectures like intel accessing unaligned ints is just > slow. On others (Alpha and PPC iirc?) it is an immediate bus error. To a first approximation, Intel is the *only* popular architecture that doesn't bus-error on unaligned accesses. (And I'm sure their chip designers rue the day that their predecessors chose to allow that.) There are some systems where the kernel trap handler then proceeds to emulate the unaligned access for you, but that gives new meaning to the word "slow". You definitely don't want to be doing it in a patch that's alleged to give a performance improvement. Speaking of which, what about some performance numbers? Like Heikki, I'm quite suspicious of whether there is any real-world gain to be had from this approach. regards, tom lane
В списке pgsql-hackers по дате отправления: