pgsql: Make dumpcolors() have tolerable performance when using 32-bit

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make dumpcolors() have tolerable performance when using 32-bit
Date: 2007-10-06 16:18:09
Message-ID: 20071006161809.A984F753E4C@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Make dumpcolors() have tolerable performance when using 32-bit chr,
as we do (and upstream Tcl doesn't). The loop limit might be subject
to negotiation if anyone ever tries to do regex debugging in Far
Eastern languages, but for now 1000 seems plenty. CHR_MAX was right out :-(

Modified Files:
--------------
pgsql/src/backend/regex:
regc_color.c (r1.5 -> r1.6)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/regex/regc_color.c?r1=1.5&r2=1.6)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2007-10-06 17:45:50 pgsql: Fix missing parenthesis, per Guillaume Lelarge.
Previous Message Tom Lane 2007-10-06 16:05:54 pgsql: Adjust some regex debugging printouts to not give