Re: New CRC algorithm: Slicing by 8

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: New CRC algorithm: Slicing by 8
Дата
Msg-id 23093.1161611418@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: New CRC algorithm: Slicing by 8  (Jeremy Drake <pgsql@jdrake.com>)
Ответы Re: New CRC algorithm: Slicing by 8  (Jeremy Drake <pgsql@jdrake.com>)
Список pgsql-hackers
Jeremy Drake <pgsql@jdrake.com> writes:
> So at this point I realize that intel's compiler is optimizing the loop
> away, at least for the std crc and probably for both.  So I make mycrc an
> array of 2, and substript mycrc[j&1] in the loop.

That's not a good workaround, because making mycrc expensive to access
means your inner loop timing isn't credible at all.  Instead try making the
buffer array nonlocal --- malloc it, perhaps.
        regards, tom lane


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: MVCC question
Следующее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: PgSQL users quota