Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance tweak

Поиск
Список
Период
Сортировка
Искать

Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance tweak

От:
"Magnus Hagander" <mha@sollentuna.net>
Дата:
> > Hm, what were the tests exactly?  Offhand I'd expect 
> something like a 
> > SELECT COUNT(*) on a large but not-too-wide table to show 
> noticeable 
> > improvement.
> > 
> > 			regards, tom lane
> I STAND CORRECTED!  My tests were high volume record by 
> record iterators, etc.  Read and drool, gentlemen.

Wow, that's just great!

Was that with the volatile attribute or not?

//Magnus

Re: [PATCHES] Win32 CHECK_FOR_INTERRUPTS() performance tweak

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
"Magnus Hagander"  writes:
> Was that with the volatile attribute or not?

I doubt volatile would make any visible performance difference --- the
CHECK_FOR_INTERRUPTS calls that are performance-critical are in places
where the compiler couldn't try to optimize away the fetches anyway.
The volatile qualifier is just needed to cover our rears in case a
CHECK_FOR_INTERRUPTS is used in some fairly small loop with no external
function calls.
		regards, tom lane

FAQ