Re: LwLockRelease performance

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ashkil Dighin <ashkildighin76(at)gmail(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: LwLockRelease performance
Date: 2021-12-02 22:19:39
Message-ID: 2225685.1638483579@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Ashkil Dighin <ashkildighin76(at)gmail(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Andres Freund 2021-12-02 23:50:44 Re: LwLockRelease performance
Previous Message Ashkil Dighin 2021-12-01 14:26:11 LwLockRelease performance