Re: Rethinking MemoryContext creation - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Rethinking MemoryContext creation
Date
Msg-id CANP8+jKbqpygOjOj7ndFfy9FdbHraKXAWRyeGn8Df0vnD5xLTA@mail.gmail.com
Whole thread Raw
In response to Re: Rethinking MemoryContext creation  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Rethinking MemoryContext creation
List pgsql-hackers
On 11 December 2017 at 16:27, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> For a *very* large majority of the callers of AllocSetContextCreate,
> the context name is a simple C string constant, so we could just store
> the pointer to it and save the space and cycles required to copy it.

Why have the string at all in that case?

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Rethinking MemoryContext creation
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Custom compression methods