Re: resowner "cold start" overhead

2022-10-31 Thread Andres Freund
Hi, On 2022-10-31 11:05:32 +0100, Heikki Linnakangas wrote: > What do you think of my ResourceOwner refactoring patches [1]? Reminded by > this, I rebased and added it to the upcoming commitfest again. > With that patch, all resources are stored in the same array and hash. The > array is part of

Re: resowner "cold start" overhead

2022-10-31 Thread Heikki Linnakangas
On 31/10/2022 04:28, Kyotaro Horiguchi wrote: At Sat, 29 Oct 2022 13:00:25 -0700, Andres Freund wrote in One way to reduce the size increase would be to use the space for initialarr to store variables we don't need while initialarr is used. E.g. itemsarr, maxitems, lastarr are candidates. But

Re: resowner "cold start" overhead

2022-10-30 Thread Kyotaro Horiguchi
At Sat, 29 Oct 2022 13:00:25 -0700, Andres Freund wrote in > One way to reduce the size increase would be to use the space for initialarr > to store variables we don't need while initialarr is used. E.g. itemsarr, > maxitems, lastarr are candidates. But I suspect that the code complication > isn