Re: reducing memory usage by using "proxy" memory contexts? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: reducing memory usage by using "proxy" memory contexts?
Date
Msg-id 15721.1576556402@sss.pgh.pa.us
Whole thread Raw
In response to Re: reducing memory usage by using "proxy" memory contexts?  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> For the specific case of RelationInitIndexAccessInfo(), allocations that
> commonly live for the rest of the backend's life and are frequent enough
> of them to matter, it might be worth micro-optimizing the
> allocations. E.g. not doing ~7 separate allocations within a few
> lines...  Not primarily because of the per-allocation overheads, but
> more because that'd allow to size things right directly.

Hmm ... that would be worth trying, for sure, since it's so easy ...

            regards, tom lane



pgsql-hackers by date:

Previous
From: Ranier Vilela
Date:
Subject: RE: [PATCH] Windows port add support to BCryptGenRandom
Next
From: Andrew Dunstan
Date:
Subject: Re: Allow cluster owner to bypass authentication