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

X-Cart Speed Optimization Service

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 03-13-2010, 02:33 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default X-Cart Speed Optimization Service

For those interested we now have an x-cart speed optimization service available. Here's some results from our most recent optimization:

http://www.websitecm.com/images/D/x-cart-speed-optimization-results.gif
Reply With Quote
  #2  
Old 03-13-2010, 04:05 PM
 
Pyro Pyro is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 506
 

Default Re: X-Cart Speed Optimization Service

This seems interesting. I notice on your store page you say "You'll see a speed increase √ we guarantee it! If you don't see an improvement in before and after page load times we'll refund your money."

What does your guarantee cover exactly? If the performance technically has an increase, but it is not noticeable at all, would that be covered? For example, the increase in speed is only .00001%. Sure its an increase, but you would be very hard pressed to notice it in real world use.

Either way, good idea for a service.
__________________
Best Wishes,
James

4.5.2 Gold (work in progress)
Reply With Quote
  #3  
Old 03-15-2010, 06:30 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: X-Cart Speed Optimization Service

While it's hard to make a concrete guarantee we're pretty reasonable. Given the methods we use the only way our optimization wouldn't help substantially is if the optimization had already been done.
Reply With Quote
  #4  
Old 03-18-2010, 05:31 PM
 
iBorg iBorg is offline
 

Newbie
  
Join Date: Dec 2009
Posts: 8
 

Default Re: X-Cart Speed Optimization Service

Hi Jon, mind sending me more details & pricing for this service? Thanks.
__________________
X-Cart Gold 4.3.2
www.g2buy.com
Reply With Quote
  #5  
Old 03-19-2010, 02:58 AM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default Re: X-Cart Speed Optimization Service

I know a way you can get those department page render times even lower (especially if they contain products). There's a few bottlenecks in X-Cart's core I discovered (especially with Special Offers enabled since we have up to 1200 defined at any given time). Ours render in less than 0.7 seconds on the new version of our site we're launching in a few weeks. Same goes with the product pages.
Reply With Quote
  #6  
Old 03-19-2010, 03:28 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: X-Cart Speed Optimization Service

Quote:
Originally Posted by exsecror
I know a way you can get those department page render times even lower (especially if they contain products). There's a few bottlenecks in X-Cart's core I discovered (especially with Special Offers enabled since we have up to 1200 defined at any given time). Ours render in less than 0.7 seconds on the new version of our site we're launching in a few weeks. Same goes with the product pages.

You wanna share?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 03-19-2010, 05:37 AM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default Re: X-Cart Speed Optimization Service

Quote:
Originally Posted by cflsystems
You wanna share?

Yeah I'll post the SQL schema and PHP code fixes later this afternoon when I'm done with my other fun projects today (stupid PDFs)
Reply With Quote
  #8  
Old 03-23-2010, 08:08 AM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default Re: X-Cart Speed Optimization Service

Jon contact me today as I totally forgot to post the code by accident. Unfortunately further inspection showed a majority of the improvements were actually made to the Special Offers code concerning at that area (sorry for the misleading post :\). In any case here is the code changes I made:

modules/Special_Offers/calculate_prepare.php:

Find:
PHP Code:
$avail_offers func_get_applicable_offers($products$customer_info$provider_for); 

Replace with:
PHP Code:
foreach ($products as $product) {
    
$_product_list[] = $product['productid'];
  }

  
$_avail_offers func_get_offers_productid($_product_list);

  if (
is_array($_avail_offers)) {
    foreach (
$_avail_offers as $_offer) {
      
$avail_offers[] = func_get_offer($_offer[0], truefalse);
    }
  }
  else {
    
$avail_offers = array();
  } 

This drastically improves a good portion of Special Offers response time (especially on the cart)
Reply With Quote

The following 2 users thank exsecror for this useful post:
cflsystems (03-23-2010), James.Schoaf (05-24-2010)
  #9  
Old 03-23-2010, 08:32 AM
 
exsecror exsecror is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,284
 

Default Re: X-Cart Speed Optimization Service

Here are some indexes that should exist but don't that cause joins without indexes problems:

Code:
CREATE INDEX offers_offer_name_idx USING BTREE(offer_name) ON xcart_offers CREATE INDEX offers_offer_idx USING BTREE(offerid, offer_avail) ON xcart_offers CREATE INDEX offers_offer_dates USING BTREE(offer_start, offer_end) ON xcart_offers CREATE INDEX offer_bonus_params_idx USING BTREE(bonusid,param_id,param_type) ON xcart_offer_bonus_params CREATE INDEX ccprocessors_processor_idx USING BTREE(processor, use_preauth, has_preauth) ON xcart_ccprocessors CREATE INDEX ccprocessors_paymentid USING BTREE(paymentid) ON xcart_ccprocessors
Reply With Quote
  #10  
Old 03-23-2010, 08:38 AM
 
Pyro Pyro is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 506
 

Default Re: X-Cart Speed Optimization Service

exsecror: Thanks for sharing! Do you happen to have any improvements for the core x-cart?
__________________
Best Wishes,
James

4.5.2 Gold (work in progress)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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 08:21 PM.

   

 
X-Cart forums © 2001-2020