Re: Rethinking MemoryContext creation
Simon Riggs <simon@2ndquadrant.com>
From: Simon Riggs <simon@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2017-12-11T17:25:21Z
Lists: 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
Commits
-
Rethink MemoryContext creation to improve performance.
- 9fa6f00b1308 11.0 landed