CMS MADE SIMPLE FORGE

CGSmartImage

 

[#10173] Page load very slow with responsive image parameter set to "yes" and lot of images

avatar
Created By: Eric Pesser (heriquet)
Date Submitted: Thu Aug 21 16:21:13 -0400 2014

Assigned To: Robert Campbell (calguy1000)
Version: 1.16.2
CMSMS Version: 1.11.10
Severity: Critical
Resolution: Works For Me
State: Closed
Summary:
Page load very slow with responsive image parameter set to "yes" and lot of images
Detailed Description:
Hi Robert,

I just spend hours searchin why my code was very slow on pages of a dev site.

I noticed that the page load was 9 seconds long for 49 images to set to 100px
width.

I tried to reduce to 8 and then I got 2 seconds page load.

Then I removed the CGSI call from my template and then... 0.3 seconds.

So I put all 49 records back on the page, and looked at CGSI admin page... I
noticed "Enable Responsive Images:" was set to "Yes". I set "No" and tried
again. Page load is now 0.3 seconds.

This issue lead 'til php process crash (reason why I set Critical bug level) So
I just wonder if the CGSI code is optimized for so much images to manager at one
time?

Now it's workin for me with that config, but maybe for other case that should
not be ok.

Or maybe should I use "noresponsive" parameter in the module call if I know too
many pictures have to be managed?

Bye,

Eric/heriquet


History

Comments
avatar
Date: 2014-08-21 17:44
Posted By: Robert Campbell (calguy1000)

I tested the CGSI module after clearing the entire cache, and did not see any
excessive (larger than 40 seconds) delays on my test pages... and all images
were cached correctly.

The primary problem is that the DeviceAtlas service (the remote service that
provides device characteristics) is failing (503 error).

I've improved CGSI to better handle errors such as this, and will release a new
version in the coming days.   but you should for the time being disable the
responsive behavior of CGSI.

for future notes... it's not CGSI that can't handle the resources, and time
constraints,   it's your local server environment.  On my stock ubuntu lamp
server I can resize the same 6.8mb image 6 times in one request in under 24
seconds.
      
avatar
Date: 2014-08-24 04:12
Posted By: Eric Pesser (heriquet)

Ok thanks!

I know for time contraints, I have a dedicated server with 32GO RAM and CPU
type: Intel(R) Xeon(R) CPU E3-1245 V2 @ 3.40GHz , 8 cores

So normally I have no performance issue coming from the host :).

      
avatar
Date: 2014-09-01 03:35
Posted By: Marc Maas (Masweb)

You don't believe this, but I had the same problems. Normally I have the
{cgsi_convert} tag default around my image tags so I can quick make scalable
image if it's necessary.

The website I used this was very slow!! Strange thing is that the website was
only slow between 9 and 12 o’clock (GMT +1) After 12 o’clock the website reacts
normal.

After I've deleted all the tags the website react very quick!

Looks like a time-ghost is in this script.

Strange story but if you want I can show you this.
      
Updates

Updated: 2015-01-15 23:28
state: Open => Closed

Updated: 2014-08-21 17:44
resolution_id: => 11