Re: Get rid of integer divide in FAST_PATH_REL_GROUP() macro

2025-04-26 Thread David Rowley
On Sun, 27 Apr 2025 at 08:44, Tomas Vondra wrote: > Thanks. Those changes seem fine to me to. Thanks for checking. > Do you intend to push these, or do you want me to do it? I made a few tweaks to the comments and pushed. David

Re: Get rid of integer divide in FAST_PATH_REL_GROUP() macro

2025-04-26 Thread Tomas Vondra
On 4/14/25 04:09, David Rowley wrote: > I noticed a while ago that the new fast-path locking code uses integer > division to figure out the fast-path locking group slot. To me, this > seems a bit unnecessary as FastPathLockGroupsPerBackend is always a > power-of-two value, so we can use bitwise-A