Make abbreviated key comparisons for text a bit cheaper.
Robert Haas <rhaas@postgresql.org>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/varlena.c | modified | +20 −9 |
| src/include/port/pg_bswap.h | modified | +24 −2 |