[TYPO3-commerce] Hook inspector
Franz Koch
typo.removeformessage at fx-graefix.de
Thu Sep 27 13:13:48 CEST 2007
Hi,
>> And I can tell you why. Commerce also instantiates the basket on every
>> call, and the basket might contain basket_items which themselfs
>> instantiate the article they stand for inside of them.
> Well,
>
> I would expect 4 calls then, not 6.
Well, depends on the number of articles in your basket - and note that
delivery and payment-methods also are articles and thus also get
initiated in the basket.
But I also noticed that there is some overhead in commerce. For example
price-calculations - the same price sometimes is calculated up to 6
times if I remember correctly. I at least managed it to reduce it to
about 3 times I guess (it's been a while since I've done that).
So there is room for optimization. Maybe a stack for articles and prices
would be a solution?
When I find some time I'll grab the latest SVN-version and create
patches for the changes I applied to my local version.
--
Kind regards,
Franz Koch
More information about the TYPO3-project-commerce
mailing list