Where do you see a performance problem ???
I've run tests on my development laptop with a average
execution time for
the related function of 0.3 milliseconds without using any
cache.
Are you using historical timestamps ? This could lead to
performance issues.
Greetings
Thomas Weidner, I18N Team Leader
http://www.thomasweidner
.com
----- Original Message -----
From: "Davide Mendolia" <idaf_1er programplay.com>
To: <fw-i18n lists.zend.com>
Sent: Wednesday, March 26, 2008 6:57 PM
Subject: [fw-i18n] setTimezone and getTimezoneFromString
> Hi,
>
> How it's possible to skip or minimize the impact of
performance of the
> following lines, when you instantiate a date with a
format without
> timezone
> in it ?
>
> Zend_Date::__construct()
>
> 198: // try to get timezone from date-string
> 199: $zone =
$this->getTimezoneFromString($date);
> 200: $this->setTimezone($zone);
>
> And specialy the call to DateObject::setTimezone()
> 1016: if (! timezone_open($zone)) {
>
----------------------------------------------------------
> Example of Zend_Date object:
> new Zend_Date($row['stage_time_start'],
Zend_Date::TIMESTAMP)
> Value of $row['stage_time_start']:
UNIX_TIMESTAMP(stage_time_start) as
> stage_time_start(in a sql query.)
>
> Thanks
> --
> Davide Mendolia
>
|