Re: Use gcc built-in atomic inc/dec in lock.c
Peter Geoghegan <peter@2ndquadrant.com>
From: Peter Geoghegan <peter@2ndquadrant.com>
To: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: pgsql-hackers@postgresql.org
Date: 2012-12-12T22:19:57Z
Lists: 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