Re: [HACKERS] regression bigtest needs very long time - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] regression bigtest needs very long time
Date
Msg-id 11229.930835950@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] regression bigtest needs very long time  (Michael Robinson <robinson@netrinsics.com>)
List pgsql-hackers
Michael Robinson <robinson@netrinsics.com> writes:
> Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
>> We assume that most data stays inside the database on every query.
>> That is, one should optimize for comparison/calculation speed, not
>> formatting speed. If you are comparing a bunch of rows to return one,
>> you will be much happier if the comparison happens quickly, as opposed
>> to doing that slowly but formatting the single output value quickly.

> 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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Bug tracking
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: [HACKERS] Bug tracking