Booked Scheduler Community Support
September 25, 2018, 05:43:17 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked 2.7 beta has been released!
   Home   Help Login Register  
Pages: [1]
Author Topic: Booked seriously slow in Windows due to 'new DateTimeZone()' is x16 slower.  (Read 961 times)

Karma: 0
Posts: 1

« 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.
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?
Full Member

Karma: 0
Posts: 117

« Reply #1 on: September 25, 2017, 08:55:09 AM »


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.

Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!