Booked Scheduler Community Support
October 22, 2017, 07:04:27 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked is proud to recommend Shift Capsule in the employee shift scheduling space www.ShiftCapsule.com
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Booked seriously slow in Windows due to 'new DateTimeZone()' is x16 slower.  (Read 107 times)
long
Newbie
*

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.
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?
Logged
YZone
Jr. Member
**

Karma: 0
Posts: 53


« Reply #1 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
Logged
Pages: [1]
  Print  
 
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!