Convert uses of hash_string_pointer to fasthash equivalent
John Naylor <john.naylor@postgresql.org>
Convert uses of hash_string_pointer to fasthash equivalent Remove duplicate hash_string_pointer() function definitions by creating a new inline function hash_string() for this purpose. This has the added advantage of avoiding strlen() calls when doing hash lookup. It's not clear how many of these are perfomance-sensitive enough to benefit from that, but the simplification is worth it on its own. Reviewed by Jeff Davis Discussion: https://postgr.es/m/CANWCAZbg_XeSeY0a_PqWmWqeRATvzTzUNYRLeT%2Bbzs%2BYQdC92g%40mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/pg_combinebackup/load_manifest.c | modified | +2 −14 |
| src/bin/pg_dump/pg_dumpall.c | modified | +2 −15 |
| src/bin/pg_rewind/filemap.c | modified | +2 −15 |
| src/bin/pg_verifybackup/pg_verifybackup.c | modified | +2 −14 |
| src/include/common/hashfn_unstable.h | modified | +20 −0 |
Discussion
- Change GUC hashtable to use simplehash? 103 messages · 2023-11-17 → 2025-02-25