Andres Freund <andres(at)anarazel(dot)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