Re: [HACKERS] regression bigtest needs very long time

From: Michael Robinson <robinson(at)netrinsics(dot)com>
To: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] regression bigtest needs very long time
Date: 1999-07-03 09:42:50
Message-ID: 199907030942.RAA02445@netrinsics.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
>> The optimizations under discussion will not significantly affect comparison
>> speed one way or the other, so comparison speed is a moot issue.
>
>On what do you base that assertion? I'd expect comparisons to be sped
>up significantly: no need to unpack the storage format, and the inner
>loop handles four digits per iteration instead of one.

The overwhelming majority of comparisons can be resolved just by looking
at the number of significant digits. Ninety percent of the remainder can
be resolved after looking at the most significant digit, and so on, except
in the case of distributions that vary only in the least significant digits.

Furthermore, on big-endian architectures, four digits of packed representation
can be compared in one iteration as well.

So, I conclude the optimizations under discussion will not significantly
affect comparison speed one way or the other.

-Michael Robinson

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Bitmead 1999-07-03 14:08:30 LIMIT and UNION
Previous Message Wayne Piekarski 1999-07-03 07:51:39 Re: [HACKERS] Update on my 6.4.2 progress