git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: db17594) | patch
Convert uses of hash_string_pointer to fasthash equivalent
Sat, 6 Apr 2024 05:17:07 +0000 (12:17 +0700)
Sat, 6 Apr 2024 05:20:40 +0000 (12:20 +0700)
commit f956ecd0353b2960f8322b2211142113fe2b6f67
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
src/bin/pg_combinebackup/load_manifest.c diff | blob | blame | history
src/bin/pg_dump/pg_dumpall.c diff | blob | blame | history
src/bin/pg_rewind/filemap.c diff | blob | blame | history
src/bin/pg_verifybackup/pg_verifybackup.c diff | blob | blame | history
src/include/common/hashfn_unstable.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /