Post by Mexico123 » Thu Oct 03, 2013 3:00 pm

On my site, I use about 10 separate vQmod XML files - would it make a performance difference (i.e. make the site load more quickly, send fewer requests to the server, etc.) to combine all those files into just one big file?

Alternatively, I was thinking of actually incorporating the vQmod code in the relevant sections of the website (so, instead of using a file to replace 20 lines of code in another file, I would just replace those 20 lines of code and get rid of the XML file).

Had anyone thought about that?

Newbie

Posts

Joined
Sat Jul 20, 2013 2:16 pm

Post by sytra » Thu Oct 03, 2013 3:55 pm

I cant help too much as coding is way beyond me, I do know that the reasoning behind the XML files is to save altering the core files, so that is why no body adds the code to the individual files

Running OC 1.5.5.1 with vqmods.
http://www.aislings.co.uk
http://www.lovers-paradise-toys.co.uk


Active Member

Posts

Joined
Sat Feb 04, 2012 6:27 am

Post by Dutch_guy » Thu Oct 03, 2013 6:06 pm

I haven't noticed any big performance difference with the VQmod files I use. Editting files directly is probably quicker, but the whole purpose of VQMOD is to prevent that. I think there are better ways to improve the speed.

Image

Free & Paid extensions from Think Twice | Opencart | Hulpmiddelen voor ouderen


Active Member

Posts

Joined
Tue Feb 21, 2012 5:56 pm


Post by gotgolfgifts » Mon Nov 04, 2013 12:26 pm

Any updates on this? I am curious if this will work. I have about 15 or so active vqmods and when I deactivate all of them, the website "Time To First Byte" is instantaneous. With all of them activate, it can take several seconds for that to happen, unless the page is cached.

The other option of course would just to hard edit the original files and do away with the vqmod files. Anybody attempt this too?

Hussain
Email: hussain@gotgolfgifts.com
Site: http://www.gotgolfgifts.com
FB: http://www.facebook.com/gotgolfgifts


Newbie

Posts

Joined
Mon Apr 01, 2013 4:00 am


Post by Qphoria » Tue Nov 05, 2013 12:15 am

The performance would be beyond negligible. Especially since it is all cached, it only reads it all one time and its saved to cache.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gotgolfgifts » Tue Nov 05, 2013 12:39 pm

Any explanation then for why the time to first byte is significantly increased when comparing all vqmods active vs all inactive?

I deactivated them one at a time and looked at the network connections using chrome developer to watch the break down. At least on my website, the time to first byte was on avg 100ms faster for each deactivated vqmod. With 15-20 vQmods that was significant in the overall scheme of things. I then tested the reverse, and activated each individually and found that it was on avg 100ms slower for each reactivated one. Initially, I was just trying to track down if there was one extension that was doing it, but found that it was a cumulative thing. I am running vQmod 2.1.7 if that adds anything.

Hussain
Email: hussain@gotgolfgifts.com
Site: http://www.gotgolfgifts.com
FB: http://www.facebook.com/gotgolfgifts


Newbie

Posts

Joined
Mon Apr 01, 2013 4:00 am


Post by Qphoria » Thu Nov 07, 2013 2:51 am

gotgolfgifts wrote:Any explanation then for why the time to first byte is significantly increased when comparing all vqmods active vs all inactive?

I deactivated them one at a time and looked at the network connections using chrome developer to watch the break down. At least on my website, the time to first byte was on avg 100ms faster for each deactivated vqmod. With 15-20 vQmods that was significant in the overall scheme of things. I then tested the reverse, and activated each individually and found that it was on avg 100ms slower for each reactivated one. Initially, I was just trying to track down if there was one extension that was doing it, but found that it was a cumulative thing. I am running vQmod 2.1.7 if that adds anything.
100ms seems a bit too small to judge... You'd have to run like 20 times both ways and average the time.
You'd also need to combine 20 vQmod xml files into a single file and run that 20 times vs 20 separate files

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gotgolfgifts » Thu Nov 07, 2013 10:57 am

Yeah I think I will go ahead and do that and let you know. Turns out I significantly underestimated the amount of vQmods I have installed. Its 45 of them. I will run it 20 times with all active, then all deactivated, and then all active again. I will do the same with them all combined.

Also, of course I was estimating that it was 100ms. But it was 100ms for each an every vQmod (45). I was eventually able to see the overall trend of faster overall time, especially after the 10th deactivated vQmod, that averaged to about 100ms per file. And then same thing when I went back and reactivated them separately.

I'll keep you posted.

Hussain
Email: hussain@gotgolfgifts.com
Site: http://www.gotgolfgifts.com
FB: http://www.facebook.com/gotgolfgifts


Newbie

Posts

Joined
Mon Apr 01, 2013 4:00 am


Post by gotgolfgifts » Thu Nov 07, 2013 12:31 pm

Sorry dumb question but I cant seem to find the answer.

I merged all the xml files into one. How do I get it to execute?

Hussain
Email: hussain@gotgolfgifts.com
Site: http://www.gotgolfgifts.com
FB: http://www.facebook.com/gotgolfgifts


Newbie

Posts

Joined
Mon Apr 01, 2013 4:00 am


Post by Qphoria » Fri Nov 08, 2013 1:28 am

gotgolfgifts wrote:Sorry dumb question but I cant seem to find the answer.

I merged all the xml files into one. How do I get it to execute?
eh?

You can't just throw them all into a file with straight copy paste... you have to only copy the <file> blocks of each xml file and put it all into one. You can only have a single <modification> block

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by gotgolfgifts » Sat Nov 09, 2013 10:32 pm

Thats what I did. The only difference is that some of the vQmods have <sql> before the <file> blocks which I kept in the document.

This is the error I got
Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module's ini settings at this time in /home4/gotgolf/public_html/vqmod/vqcache/vq2-system_startup.php on line 13

Notice: A session had already been started - ignoring session_start() in /home4/gotgolf/public_html/vqmod/vqcache/vq2-system_startup.php on line 16

Fatal error: Cannot redeclare class Cache in /home4/gotgolf/public_html/system/library/cache.php on line 2

Hussain
Email: hussain@gotgolfgifts.com
Site: http://www.gotgolfgifts.com
FB: http://www.facebook.com/gotgolfgifts


Newbie

Posts

Joined
Mon Apr 01, 2013 4:00 am


Post by gotgolfgifts » Mon Nov 11, 2013 12:05 am

Can I send you the combined file so you can see if there is anything obviously wrong with it?

Hussain
Email: hussain@gotgolfgifts.com
Site: http://www.gotgolfgifts.com
FB: http://www.facebook.com/gotgolfgifts


Newbie

Posts

Joined
Mon Apr 01, 2013 4:00 am


Post by gotgolfgifts » Tue Nov 12, 2013 12:56 pm

got it to work. I forgot to end with </modification>

Hussain
Email: hussain@gotgolfgifts.com
Site: http://www.gotgolfgifts.com
FB: http://www.facebook.com/gotgolfgifts


Newbie

Posts

Joined
Mon Apr 01, 2013 4:00 am


Post by Qphoria » Wed Nov 13, 2013 3:33 am

gotgolfgifts wrote:got it to work. I forgot to end with </modification>
cool.. so what's the average outcome after 10 loads both ways?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by rph » Thu Nov 14, 2013 12:05 am

Before the mod caching system I saw a 30% speed boost. This was with an unusually high number of scripts though (nearly 100). I haven't tested with mod caching but I suspect it doesn't make as much of a difference.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: Amazon [Bot] and 28 guests