Обсуждение: pgsql: Make dumpcolors() have tolerable performance when using 32-bit

Поиск
Список
Период
Сортировка

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

От
tgl@postgresql.org (Tom Lane)
Дата:
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)