Skip to content
Snippets Groups Projects
Commit 8c792fe9 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

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
parent bbb586ff
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment