Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2272 closed Aufgabe (fixed)

Micro-Optimierung in Versandmodul table

Reported by: noRiddle Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.8.0
Component: Shop Version: 2.0.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Im Versandmodul table sollte man das sizeof() aus dem Loop nehmen:

for ($i=0; $i<sizeof($table_table); $i+=2) {

Z.B. so:

$size = sizeof($table_table);
for ($i = 0; $i < $size; $i +=2) {

Je nachdem wieviele Preise man hat ist die Optimierung auch gar nicht so "micro" ;-) .

Gruß,
noRiddle

Attachments (0)

Change History (5)

comment:1 by Gerhard Waldemair, 3 years ago

wenn dann so:

for ($i = 0, $n = sizeof($table_table); $i < $n; $i +=2) {

comment:2 by Gerhard Waldemair, 3 years ago

Resolution: fixed
Status: newclosed

In 14637:

fix #2272 - performance optimize shipping modules

comment:3 by Gerhard Waldemair, 3 years ago

Milestone: modified-shop-2.0.8.0

comment:4 by noRiddle, 3 years ago

Jau, wie du möchtest, hatte es vorgeschlagen wie es im Modul zones ist.

Gruß,
noRiddle

comment:5 by Gerhard Waldemair, 3 years ago

Habe gleich alle anderen Versandmodule auch durchgeschaut und korrigiert.

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.