Booked Scheduler Community Support

Help and Support => Developers => Topic started by: long on September 24, 2017, 10:37:39 AM



Title: Booked seriously slow in Windows due to 'new DateTimeZone()' is x16 slower.
Post by: long on September 24, 2017, 10:37:39 AM
Hi, booked seriously slow in Windows environment.
I tested some windows and linux enviroment.

Windows Environments:
OS: Windows 10 64bit/Windows Server 2008 R2 bit
PHP5 or PHP7 installed by XAMPP.
Or PHP7 64bit and apache2 64bit manually.

Render time to show 28 resources:
6.90 sec to render.

Linux Einvironments:
OS: Ubuntu 17.04 64bit on VMWare (I tried by 2 PCs)
Render time to show 28 resources:
0.62 sec to render.

The bottleneck is 'new DateTimeZone()'  in SchedulePage.php
this method is x16 slower in my windows environment than linux.

I also to tried replace current  DateTimeZone() to cached timeZone instance for my investigation.
Added timeZoneCache like following into Date class.
Code:
private static $timeZoneCache = null;
if (empty(self::$timeZoneCache))
{
  self::$timeZoneCache = new DateTimeZone($this->timezone);
}
After that changes, render time in windows has become following.
6.90 sec  -> 0.55 sec.

Do you know something good idea to improve this problem?


Title: Re: Booked seriously slow in Windows due to 'new DateTimeZone()' is x16 slower.
Post by: YZone on September 25, 2017, 08:55:09 AM
Hi,

Welcome to the forum,

Nick is busy with version 2.6.8 which will, among other things, deal with “Optimize JavaScript file loading for better page rendering times”.
You can wait until version 2.6.8 is released, maybe this will solve your problem.

YZone