Re: LwLockRelease performance - Mailing list pgsql-performance

From Tom Lane
Subject Re: LwLockRelease performance
Date
Msg-id 2225685.1638483579@sss.pgh.pa.us
Whole thread Raw
In response to LwLockRelease performance  (Ashkil Dighin <ashkildighin76@gmail.com>)
List pgsql-performance
Ashkil Dighin <ashkildighin76@gmail.com> writes:
> The performance bottleneck in LWLockRelease()method goes through an array
> one by one to see which lock was released with O(N). As soon as the lock is
> found it performs an array to remove the lock.

Typically, such locks are released in LIFO order.  Do you have any
actual evidence of a performance problem here?

            regards, tom lane



pgsql-performance by date:

Previous
From: Ashkil Dighin
Date:
Subject: LwLockRelease performance
Next
From: Andres Freund
Date:
Subject: Re: LwLockRelease performance