Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18022 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26840 invoked by uid 1010); 14 Aug 2005 01:45:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26825 invoked from network); 14 Aug 2005 01:45:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Aug 2005 01:45:38 -0000 X-Host-Fingerprint: 195.197.172.116 gw02.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.116:54259] helo=gw02.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0B/A6-33075-242AEF24 for ; Sat, 13 Aug 2005 21:45:38 -0400 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw02.mail.saunalahti.fi (Postfix) with ESMTP id 08F4BD00D3; Sun, 14 Aug 2005 04:45:32 +0300 (EEST) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id j7E1jWbQ029130; Sun, 14 Aug 2005 04:45:32 +0300 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j7E1jWea029127; Sun, 14 Aug 2005 04:45:32 +0300 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Sun, 14 Aug 2005 04:45:32 +0300 (EEST) Reply-To: Jani Taskinen To: Wez Furlong cc: internals In-Reply-To: <4e89b4260508130652655bcff2@mail.gmail.com> Message-ID: References: <4e89b4260508130652655bcff2@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] Need a cache for ucnv_open() From: sniper@iki.fi (Jani Taskinen) I'd go with zend_unicode.c as you can disable ext/unicode. --Jani On Sat, 13 Aug 2005, 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. > > -- Donate @ http://pecl.php.net/wishlist.php/sniper