Re: reducing the footprint of ScanKeyword (was Re: Large writable variables)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John Naylor <john.naylor@2ndquadrant.com>
Cc: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>,
Andres Freund <andres@anarazel.de>, Joerg Sonnenberger <joerg@bec.de>,
David Rowley <david.rowley@2ndquadrant.com>,
PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2019-01-08T22:53:25Z
Lists: pgsql-hackers
Attachments
- PerfectHash.pm (text/plain)
John Naylor <john.naylor@2ndquadrant.com> writes: > -As for the graph algorithm, I'd have to play with it to understand > how it works. I improved the comment about how come the hash table entry assignment works. One thing I'm not clear about myself is # A cycle-free graph is either empty or has some vertex of degree 1. That sounds like a standard graph theory result, but I'm not familiar with a proof for it. regards, tom lane
Commits
-
Use perfect hashing, instead of binary search, for keyword lookup.
- c64d0cd5ce24 12.0 landed
-
Reduce the size of the fmgr_builtin_oid_index[] array.
- 8ff5f824dca7 12.0 landed
-
Replace the data structure used for keyword lookup.
- afb0d0712f1a 12.0 landed