Skip site navigation (1) Skip section navigation (2)

pgsql: At the head of wchareq, length of (multibyte) character is

From: momjian(at)svr1(dot)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: At the head of wchareq, length of (multibyte) character is
Date: 2005-05-25 22:59:34
Message-ID: 20050525225934.191A052815@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
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.

a_ogawa

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        like.c (r1.59 -> r1.60)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/like.c.diff?r1=1.59&r2=1.60)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2005-05-26 00:16:32
Subject: pgsql: Add PL/pgSQL SQLSTATE and SQLERRM support which sets these values
Previous:From: Bruce MomjianDate: 2005-05-25 22:12:05
Subject: pgsql: Quick patch to adress a recent concern on the mailing list about

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group