Re: Cost of XLogInsert CRC calculations

Kris Jurka <books@ejurka.com>

From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mark Cave-Ayland <m.cave-ayland@webbased.co.uk>, pgsql-hackers@postgresql.org
Date: 2005-05-17T17:15:25Z
Lists: pgsql-hackers

On Mon, 16 May 2005, Tom Lane wrote:

> I did some experimentation and concluded that gcc is screwing up
> big-time on optimizing the CRC64 code for 32-bit Intel.  It does much
> better on every other architecture though.
> 
> Anyone want to try it with non-gcc compilers?

Solaris 9 x86 - Sun Workshop 6 update 2 C 5.3, gcc 3.2.3

gcc -O1 crctest.c      .251422
gcc -O3 crctest.c      .240223
gcc -O1 crctest64.c    .281369
gcc -O3 crctest64.c    .631290

cc -O crctest.c        .268905
cc -fast crctest.c     .242429
cc -O crctest64.c      .283278
cc -fast crctest64.c   .255560


Kris Jurka