]> granicus.if.org Git - postgresql/commit
Make abbreviated key comparisons for text a bit cheaper.
authorRobert Haas <rhaas@postgresql.org>
Fri, 9 Oct 2015 19:06:06 +0000 (15:06 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 9 Oct 2015 19:06:06 +0000 (15:06 -0400)
commitbfb54ff15a447fb22e9deae096e0d45b3e4bd56f
treebe464bb5a57e39b94e9a17f2baf7bf28237a01e8
parentdb0f6cad4884bd4c835156d3a720d9a79dbd63a9
Make abbreviated key comparisons for text a bit cheaper.

If we do some byte-swapping while abbreviating, we can do comparisons
using integer arithmetic rather than memcmp.

Peter Geoghegan, reviewed and slightly revised by me.
src/backend/utils/adt/varlena.c
src/include/port/pg_bswap.h