Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17965 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61238 invoked by uid 1010); 13 Aug 2005 13:52:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 61223 invoked from network); 13 Aug 2005 13:52:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Aug 2005 13:52:48 -0000 X-Host-Fingerprint: 64.233.184.199 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.199:13226] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7A/16-33075-03BFDF24 for ; Sat, 13 Aug 2005 09:52:48 -0400 Received: by wproxy.gmail.com with SMTP id i22so741980wra for ; Sat, 13 Aug 2005 06:52:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QNMhYKQqtuvx5sPu71h9S651h4F+2ZcxFFm/uItT8BzGXqZRm5NXo584QihcEDpnp7beMetHKpif+pxvsEmhY4WGnurkeJqHWAKVTcOWg4GRuUwGn6pOzC+GisB3CTJvzDUHbO2CmM8YMo0qEu9t5IIwnDOXCWjoB/hBDvm3iZg= Received: by 10.54.153.14 with SMTP id a14mr2558886wre; Sat, 13 Aug 2005 06:52:45 -0700 (PDT) Received: by 10.54.153.5 with HTTP; Sat, 13 Aug 2005 06:52:44 -0700 (PDT) Message-ID: <4e89b4260508130652655bcff2@mail.gmail.com> Date: Sat, 13 Aug 2005 09:52:44 -0400 To: internals , Andrei Zmievski Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Need a cache for ucnv_open() From: kingwez@gmail.com (Wez Furlong) A number of extensions/functions (strangely, most of the things I work on :-) will need to be able to convert between unicode and arbitrary encodings. It makes a lot of sense to keep some kind of per-request cache (of limited length) to avoid having to load and unload the conversion table on each conversion attempt. Since this cache needs to always be present (to avoid crazy conditional compilation) we either need to put it in zend_unicode.c or put it in ext/unicode and always require it to be statically compiled into php. Thoughts? --Wez.