I have a website accessible in multiple languages and I'm seeing something strange in my page load times with the different locales. Here are the load times of one of the more important pages as an example.
en_GB = 469ms
fr_BE = 545ms
nl_BE = 1.45s
I already figured out that the difference is caused by this code:
$format_number = Zend_Locale_Format::toNumber(
$number,
array( 'precision' => 2 , 'locale' => Zend_Registry::get( 'Zend_Locale' ) )
);
If I remove this code and just return the numbers unformated, all 3 locales render the page in about the same time. (+/- 500ms) I have quite a few numbers that need formatting on this page, so hence the serious impact.
I have been looking at this for quite some time now but can't find a solution, or even an explanation at that.
Any ideas?