Zend_Currency: Exceptionally slow instantiation.

2 messages Options
Embed this post
Permalink
Jeff Welch-2

Zend_Currency: Exceptionally slow instantiation.

Reply Threaded More More options
Print post
Permalink
On my local testing environment I've noticed that simply instantiating Zend_Currency takes exceptionally long (1.5 - 2 seconds).

Examples:

$currency = new Zend_Currency('en_US'); // takes 1.5 - 2 seconds.

I'm running PHP 5.2.1 with the latest snapshot on Mac OS X 10.4.1.  Any ideas?
thomasW

Re: Zend_Currency: Exceptionally slow instantiation.

Reply Threaded More More options
Print post
Permalink
Why don't you set a cache as described in the docu to speed up the class ?
See Zend_Currency::setCache

Greetings
Thomas
I18N Team Leader


----- Original Message -----
From: "Jeff Welch" <[hidden email]>
To: <[hidden email]>
Sent: Thursday, October 25, 2007 11:05 PM
Subject: [fw-i18n] Zend_Currency: Exceptionally slow instantiation.


> On my local testing environment I've noticed that simply instantiating
> Zend_Currency takes exceptionally long (1.5 - 2 seconds).
>
> Examples:
>
> $currency = new Zend_Currency('en_US'); // takes 1.5 - 2 seconds.
>
> I'm running PHP 5.2.1 with the latest snapshot on Mac OS X 10.4.1.  Any
> ideas?
>