Re: Base64 decode/encode performance

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Base64 decode/encode performance
Дата
Msg-id 20080910152556.GE27812@svana.org
обсуждение исходный текст
Ответ на Re: Base64 decode/encode performance  (Mark Mielke <mark@mark.mielke.cc>)
Список pgsql-hackers
On Wed, Sep 10, 2008 at 10:44:00AM -0400, Mark Mielke wrote:
> >There are 2 killer problems:
> >
> >- decode does not seem to handle architectures that segfault
> >  on unaligned int32 accesses.
>
> Out of curiosity - does this problem exist on any platform for which
> PostgreSQL is currently ported and supported?

It exists on most CPUs actually like Alpha/Sparc/MIPS, just not on
Intel chips, which is why you don't see them very often. Unaligned
accesses do take twice as long to execute though, even on Intel chips.
On some OSes the unaligned access is trapped and emulated by the OS,
which doesn't do much for performance.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while
> boarding. Thank you for flying nlogn airlines.

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

Предыдущее
От: tomas@tuxteam.de
Дата:
Сообщение: Re: Base64 decode/encode performance
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: New FSM patch