Re: [PATCHES] inline newNode()
От | Neil Conway |
---|---|
Тема | Re: [PATCHES] inline newNode() |
Дата | |
Msg-id | 87k7kqmcds.fsf@mailbox.samurai.com обсуждение исходный текст |
Ответ на | Re: [PATCHES] inline newNode() (Gavin Sherry <swm@linuxworld.com.au>) |
Список | pgsql-hackers |
Gavin Sherry <swm@linuxworld.com.au> writes: > On 10 Oct 2002, Neil Conway wrote: > > Compiled with '-DBUFFER_SIZE=256 -O2', I get the following results in > > seconds: > > > > MemSet(): ~9.6 > > memset(): ~19.5 > > __builtin_memset(): ~10.00 > > I ran the same code. I do not understand the results you go. Interesting -- it may be the case that the optimizations performed by GCC are architecture specific. I searched for some threads about this on the GCC list. One interesting result was this: http://gcc.gnu.org/ml/gcc/2002-04/msg01114.html One possible explanation for the different performance you saw is explained by Jan Hubicka: http://gcc.gnu.org/ml/gcc/2002-04/msg01146.html One thing that confuses me is that GCC decides *not* to use __builtin_memset() for some reason, even though it appears to be superior to normal memset() on both of our systems. Cheers, Neil -- Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC
В списке pgsql-hackers по дате отправления: