Zend_Currency: Exceptionally slow instantiation.

View: New views
2 Messages — Rating Filter:   Alert me  

Zend_Currency: Exceptionally slow instantiation.

by Jeff Welch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?

Re: Zend_Currency: Exceptionally slow instantiation.

by thomasW :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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" <whatthejeff@...>
To: <fw-i18n@...>
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?
>