Modify ↓
#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 , 3 years ago
comment:3 by , 3 years ago
| Milestone: | → modified-shop-2.0.8.0 |
|---|
comment:4 by , 3 years ago
Jau, wie du möchtest, hatte es vorgeschlagen wie es im Modul zones ist.
Gruß,
noRiddle
comment:5 by , 3 years ago
Habe gleich alle anderen Versandmodule auch durchgeschaut und korrigiert.
Note:
See TracTickets
for help on using tickets.

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