pgsql: Add a fast pre-check for equality of equal-length strings. - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Add a fast pre-check for equality of equal-length strings.
Date
Msg-id E1XV1W5-0004tw-M5@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add a fast pre-check for equality of equal-length strings.

Testing reveals that that doing a memcmp() before the strcoll() costs
practically nothing, at least on the systems we tested, and it speeds
up sorts containing many equal strings significatly.

Peter Geoghegan.  Review by myself and Heikki Linnakangas.  Comments
rewritten by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e246b3d6eac09d0770e6f68e69f2368d02db88af

Modified Files
--------------
src/backend/utils/adt/varlena.c |   20 ++++++++++++++++++++
1 file changed, 20 insertions(+)


pgsql-committers by date:

Previous
From: Stephen Frost
Date:
Subject: pgsql: Row-Level Security Policies (RLS)
Next
From: Robert Haas
Date:
Subject: pgsql: doc: Use and all-caps for READ COMMITTED isolation lev