Re: Substituting Checksum Algorithm (was: Enabling Checksums)

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Substituting Checksum Algorithm (was: Enabling Checksums)
Дата
Msg-id 20130423084738.GA9063@awork2.anarazel.de
обсуждение исходный текст
Ответ на Substituting Checksum Algorithm (was: Enabling Checksums)  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: Substituting Checksum Algorithm (was: Enabling Checksums)  (Ants Aasma <ants@cybertec.at>)
Список pgsql-hackers
On 2013-04-23 00:17:28 -0700, Jeff Davis wrote:
> + # important optimization flags for checksum.c
> + ifeq ($(GCC),yes)
> + checksum.o: CFLAGS += -msse4.1 -funroll-loops -ftree-vectorize
> + endif

I am pretty sure we can't do those unconditionally:
- -funroll-loops and -ftree-vectorize weren't always part of gcc afair, so we would need a configure check for those
- SSE4.1 looks like a total no-go, its not available everywhere. We *can* add runtime detection of that with gcc fairly
easilyand one-time if we wan't to go there (later?) using 'ifunc's, but that needs a fair amount of infrastructure
work.
- We can rely on SSE1/2 on amd64, but I think thats automatically enabled there.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Ants Aasma
Дата:
Сообщение: Re: Substituting Checksum Algorithm (was: Enabling Checksums)
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: 9.3 Beta1 status report