Re: Use gcc built-in atomic inc/dec in lock.c - Mailing list pgsql-hackers

From Peter Geoghegan
Subject Re: Use gcc built-in atomic inc/dec in lock.c
Date
Msg-id CAEYLb_WKqE-TqcvpyF4Ctj+a_RMBUwZGbiee-t6JqQroyG7_ig@mail.gmail.com
Whole thread Raw
In response to Use gcc built-in atomic inc/dec in lock.c  (Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>)
Responses Re: Use gcc built-in atomic inc/dec in lock.c  (Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>)
Re: Use gcc built-in atomic inc/dec in lock.c  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 12 December 2012 22:11, Mikko Tiihonen
<mikko.tiihonen@nitorcreations.com> wrote:
> noticed a "XXX: It might be worth considering using an atomic fetch-and-add
> instruction here, on architectures where that is supported." in lock.c
>
> Here is my first try at using it.

That's interesting, but I have to wonder if there is any evidence that
this *is* actually helpful to performance.

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



pgsql-hackers by date:

Previous
From: Mikko Tiihonen
Date:
Subject: Use gcc built-in atomic inc/dec in lock.c
Next
From: Greg Smith
Date:
Subject: Re: Enabling Checksums