Re: sortsupport for text - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: sortsupport for text
Date
Msg-id CAEYLb_Vt+4RheQUAoGcxNyj+LCozMka+dnvMzmfegPkj8v+mWQ@mail.gmail.com
Whole thread Raw
In response to Re: sortsupport for text  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: sortsupport for text
List pgsql-hackers
On 23 July 2012 16:36, Robert Haas <robertmhaas@gmail.com> wrote:
> On Mon, Jul 23, 2012 at 11:34 AM, Peter Geoghegan <peter@2ndquadrant.com> wrote:
>>> tss->buflen = 1 << ffs(len1);
>>
>> I'm sorry, I don't follow you here. What is ffs() ?
>
> Sorry, fls, not ffs.  I always get those mixed up.
>
> See src/port/fls.c

Oh, okay. Since, I infer, we're starting from a buffer-size that's a
power-of-two anyway, is there really any advantage in doing this
rather than just doubling the buffer size each time?

-- 
Peter Geoghegan       http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training and Services


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: sortsupport for text
Next
From: Robert Haas
Date:
Subject: Re: sortsupport for text