diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-05-25 22:59:33 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-05-25 22:59:33 +0000 |
commit | 8c792fe9cbe1dcfdafcdc70b961be714631324ec (patch) | |
tree | d9a4e8a4c5848634e4e5fe86db831f2a0d44af45 /src/backend/utils/adt/ruleutils.c | |
parent | bbb586ff211c2d304db4a64e8c3ea715a4ecebb5 (diff) | |
download | postgresql-8c792fe9cbe1dcfdafcdc70b961be714631324ec.tar.gz postgresql-8c792fe9cbe1dcfdafcdc70b961be714631324ec.zip |
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
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions