Re: [PATCH] backend: compare word-at-a-time in bcTruelen

From: Chuck McDevitt <cmcdevitt(at)greenplum(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: "<pgsql-hackers(at)postgresql(dot)org>" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] backend: compare word-at-a-time in bcTruelen
Date: 2009-06-16 17:57:48
Message-ID: 2106D8DC89010842BABA5CD03FEA4061CA7CFA16@EXVMBX018-10.exch018.msoutlookonline.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org [mailto:pgsql-hackers-
> owner(at)postgresql(dot)org] On Behalf Of Stephen Frost
> Sent: Tuesday, June 16, 2009 5:47 AM
> To: Greg Stark
> Cc: Robert Haas; Jeremy Kerr; <pgsql-hackers(at)postgresql(dot)org>; Alvaro
> Herrera; Stefan Kaltenbrunner; Gurjeet Singh
> Subject: Re: [HACKERS] [PATCH] backend: compare word-at-a-time in
> bcTruelen
>

On 64-bit machines, the native word size is 64-bits (obviously), and comparing 32 bits at a time is much slower than comparing 64 bits at a time.

You might want to consider this.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-06-16 18:12:01 Re: machine-readable explain output
Previous Message Robert Haas 2009-06-16 17:53:54 Re: machine-readable explain output