At the head of wchareq, length of (multibyte) character is compared by
using pg_mblen. Therefore, pg_mblen is executed many times, and it
becomes a bottleneck.
This patch makes a short cut, and reduces execution frequency of
pg_mblen by comparing the first byte first.
like.c (r1.59 -> r1.60)
pgsql-committers by date
|Next:||From: Bruce Momjian||Date: 2005-05-26 00:16:32|
|Subject: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support which sets these values |
|Previous:||From: Bruce Momjian||Date: 2005-05-25 22:12:05|
|Subject: pgsql: Quick patch to adress a recent concern on the mailing list about |