Hy Joe,
A few things you should know:
Zend_Locale loads practically one or two xml files depending on your locale
on it's initialisation.
These files are cached internally as long as the object exists.
And the object should be within bour bootstrap file as mentioned in the
documentation.
We have made internally tests...
Having the locale data within an cache is as fast as the actual approach.
Having array is also as fast because the time which is consumed in related
to reading the file and not
the parsing itself.
Database has shown to be slower even as reading the xml file.
There is not difference because loading a file is loading a file independent
of the content. The loading is what's taking the time.
The only practical thing would be to have the data within an memcache which
gives you 0.001 seconds bonus... BUT then you would probably have the
complete ZF within an memcache because without the locale data the complete
I18N core would not work anymore and only throw exceptions.
This was the reason why we did not include the possibility of having the
CLDR externally.
Greetings
Thomas
I18N Team Leader
----- Original Message -----
From: "Joe Kramer" <[EMAIL PROTECTED]>
To: "Zend Framework General" <[email protected]>
Sent: Monday, April 16, 2007 7:35 PM
Subject: [fw-general] Zend_Locale: how to stop it load xml file on every
request?
Hello,
Zend_Locale loads locale xml file on every initialisation.
I want to optimise the performance as much as possible.
Is it possible to make my own locale data provider, to supply locale
data from array or cache xml in memcache or database ?
Thanks.