Use memcmp() rather than strncmp() when shorter string length is known.

Robert Haas <rhaas@postgresql.org>

Commit: 32ba2b516066688ff56e6d62a7ff4a01c88f5700
Author: Robert Haas <rhaas@postgresql.org>
Date: 2010-12-22T03:11:40Z
Releases: 9.1.0
Use memcmp() rather than strncmp() when shorter string length is known.

It appears that this will be faster for all but the shortest strings;
at least one some platforms, memcmp() can use word-at-a-time comparisons.

Noah Misch, somewhat pared down.

Files