Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

4.0.x performance improvement

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #41  
Old 01-11-2007, 04:11 PM
 
mocara mocara is offline
 

Advanced Member
  
Join Date: Apr 2005
Posts: 55
 

Default Re: 4.0.x performance improvement

Dude. You are as they say 'The Man'.
Previously
<!--<TIME all="0.970788002014" sql="0.256434440613" php="0.714353561401">-->
Now
<!--<TIME all="0.324037075043" sql="0.0707721710205" php="0.253264904022">-->

1 sec is too slow for a page to generate. This has made things so much better. I salute you!


however, that is for manufacturer list displays. A category with 47 products and 1 subcategory still takes 2.5 secs.

Dave.
__________________
4.0.15
Linux
Reply With Quote
  #42  
Old 01-16-2007, 03:24 PM
 
xcartbob xcartbob is offline
 

Newbie
  
Join Date: Oct 2006
Posts: 7
 

Default Re: 4.0.x performance improvement

Quote:
Originally Posted by geckoday
Two I'm working on. One turns out its another rewrite in 4.1 but looks like it affects 4.0 at least back to 4.0.12. Has to do with $lng variables in templates. God that whole mess is ugly and boy did they do it bad in 4.0. 4.1 is even uglier but I think they fixed the performance end of it. I was going to try to retrofit it from 4.1 but its too nasty so I have a simplified version in the works. Iits horrible the price we pay for multilingual capabilities on a single language site. The second will speed up the product page if you use variants. The more variants the more improvement. Seems X-Cart asks for the tax rate for each variant - but the tax rate is only dependent on the product. So it goes through a ton of work for every variant when it only needs to do it once. They tried to cache some of that work but they screwed it up and it only works for logged in users. And they didn't cache the results at a higher level routine so it doesn't have that much affect. This one will apply to both 4.0 and 4.1. Stay tuned. I'll post these later this week or next week.

geckoday,

I can't wait for your other performance boosters! Thanks for this tip. I had just upgraded a few shopping carts and and the same time changed hosting providers, and I couldn't figure out why the sites were running so slow.

This little tidbit improved performance quite a bit.

Thanks again.
__________________
Bob
Complete Tech Support Inc.
www.completetechsupport.com
Reply With Quote
  #43  
Old 01-28-2007, 12:32 PM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Default Re: 4.0.x performance improvement

Wow. It sure does improve performance. Thanks.
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote
  #44  
Old 02-22-2007, 10:31 PM
 
jsa jsa is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 197
 

Default Re: 4.0.x performance improvement

Quote:
Originally Posted by mocara
Dude. You are as they say 'The Man'.
Previously
<!--<TIME all="0.970788002014" sql="0.256434440613" php="0.714353561401">-->
Now
<!--<TIME all="0.324037075043" sql="0.0707721710205" php="0.253264904022">-->

1 sec is too slow for a page to generate. This has made things so much better. I salute you!


however, that is for manufacturer list displays. A category with 47 products and 1 subcategory still takes 2.5 secs.

Dave.

Wow, that's neat... How do you get that those timing comments to appear in the code?
__________________
Building: X-Cart GoldPlus 4.6.1
Old cart:
XC 4.0.17 FComp-RMA-AOM-OFF-Affil
BCSE: Referral Pts-Surveys-BatchUp-OrderEZ- Reviews-RSS
FT: Glossary-OptCopt-AdvSrch-Recently Viewed-Also Bought
CM: eZConversion
XP: SalesRecovery, MultCrncy
Reply With Quote
  #45  
Old 02-23-2007, 06:03 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default Re: 4.0.x performance improvement

http://www.yourdomain.com?benchmark=y
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #46  
Old 02-23-2007, 09:37 PM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 477
 

Default Re: 4.0.x performance improvement

So it looks like the slow func is func_bf_psc (see blowfish.php). It is also used in func_tpl_postfilter(). Not sure what it is actually doing. Seems to be the decrypt of $r?
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
  #47  
Old 02-24-2007, 08:27 AM
 
jsa jsa is offline
 

Senior Member
  
Join Date: Oct 2005
Posts: 197
 

Default Re: 4.0.x performance improvement

Quote:
Originally Posted by geckoday

Wow, very cool, thank you!

My main page is huge, tons of HEAVY-weight mods, and I get this:
<!--<TIME all="0.25964713096619" sql="0.015767574310303" php="0.24387955665588">-->

Don't know what it was pre-mod. I did this mod awhile ago. (thanks!)
__________________
Building: X-Cart GoldPlus 4.6.1
Old cart:
XC 4.0.17 FComp-RMA-AOM-OFF-Affil
BCSE: Referral Pts-Surveys-BatchUp-OrderEZ- Reviews-RSS
FT: Glossary-OptCopt-AdvSrch-Recently Viewed-Also Bought
CM: eZConversion
XP: SalesRecovery, MultCrncy
Reply With Quote
  #48  
Old 02-24-2007, 09:37 AM
 
nfc5382 nfc5382 is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 477
 

Default Re: 4.0.x performance improvement

BEFORE: <!--<TIME all="1.588504076004" sql="0.49451470375061" php="1.0939893722534">-->

AFTER:<!--<TIME all="0.79779291152954" sql="0.14707159996033" php="0.65072131156921">-->
__________________
-----------------------
x-cart v4.7.6 [LIVE]
x-cart v4.0.18 [retired 2004-2016]
x-cart v3.5.13 [retired]
x-cart v3.4.14 [retired]
Reply With Quote
  #49  
Old 02-27-2007, 06:55 PM
 
jimmy_ jimmy_ is offline
 

Advanced Member
  
Join Date: Sep 2004
Posts: 37
 

Default Re: 4.0.x performance improvement

thanks this was very helpful
__________________
Xcart v4.0.18
Reply With Quote
  #50  
Old 02-28-2007, 05:47 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: 4.0.x performance improvement

I was having trouble getting the benchmark times to display. With Jasmin's help, I now see my site's benchmarks. Here's how...

In your browser's address bar type in:
http://www.yourdomain.com/home.php?benchmark=y

Replace yourdomain.com with the domain name of your X-cart store. Make sure you use the full path to the page you want to test. I tried the original, http://www.yourdomain.com?benchmark=y and that didn't work for me, because the index.php page redirects to the home.php page.

Once you type in your Domain and Full Page Path plus the Question Mark and the Benchmark equals Yes, then hit your Enter/Return key and let the page load. Everything looks normal at this point. Now, you need to go to your browser's menu bar and select View Page Source Code. Scroll down to the bottom of the source code and you will see the page load times listed in an HTML comment.

Hope that helps anyone else trying to view their page load times. Jasmin, thanks again for your how-to tips.

Robert
__________________
X-cart 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:14 PM.

   

 
X-Cart forums © 2001-2020