Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18036 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 93912 invoked by uid 1010); 14 Aug 2005 04:50:43 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 93897 invoked from network); 14 Aug 2005 04:50:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2005 04:50:43 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:35759] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 7C/5F-33075-2ADCEF24 for ; Sun, 14 Aug 2005 00:50:43 -0400 Received: from [192.168.11.2] (c-24-6-96-18.hsd1.ca.comcast.net [24.6.96.18]) (authenticated bits=0) by colo.lerdorf.com (8.13.4/8.13.4/Debian-3) with ESMTP id j7E4oaQ9012694; Sat, 13 Aug 2005 21:50:37 -0700 In-Reply-To: <4e89b4260508130652655bcff2@mail.gmail.com> References: <4e89b4260508130652655bcff2@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: Cc: internals Content-Transfer-Encoding: 7bit Date: Sat, 13 Aug 2005 21:50:59 -0700 To: Wez Furlong X-Mailer: Apple Mail (2.733) Subject: Re: Need a cache for ucnv_open() From: andrei@gravitonic.com (Andrei Zmievski) zend_unicode.c is the place for it, IMHO. -Andrei On Aug 13, 2005, at 6:52 AM, Wez Furlong wrote: > 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. >