Ignore:
Timestamp:
12/14/12 14:30:35 (11 years ago)
Author:
douglasz
Message:

Ticket #3236 - Melhorias de performance no codigo do Expresso.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/library/PEAR/PEAR/Frontend/CLI.php

    r5146 r7655  
    271271                        echo $this->bold("* Enter an answer for #" . $i . ": ({$prompts[$var]})\n"); 
    272272                    } 
    273                     $i++; 
     273                    ++$i; 
    274274                } 
    275275            } 
     
    579579    { 
    580580        $highest = 1; 
    581         for ($i = 0; $i < count($columns); $i++) { 
     581        for ($i = 0; $i < count($columns); ++$i) { 
    582582            $col = &$columns[$i]; 
    583583            if (isset($colparams[$i]) && !empty($colparams[$i]['wrap'])) { 
     
    642642            $width = $widest; 
    643643        } else { 
    644             for ($i = 0; $i < $ncols; $i++) { 
     644            for ($i = 0; $i < $ncols; ++$i) { 
    645645                if (!isset($width[$i])) { 
    646646                    $width[$i] = $widest[$i]; 
     
    672672        } 
    673673 
    674         for ($i = 0; $i < count($table_data); $i++) { 
     674        for ($i = 0; $i < count($table_data); ++$i) { 
    675675            extract($table_data[$i]); 
    676676            if (!is_array($rowparams)) { 
     
    691691                } 
    692692            } else { 
    693                 for ($c = 0; $c < count($data); $c++) { 
     693                for ($c = 0; $c < count($data); ++$c) { 
    694694                    $rowlines[$c] = array($data[$c]); 
    695695                } 
    696696            } 
    697697 
    698             for ($r = 0; $r < $height; $r++) { 
     698            for ($r = 0; $r < $height; ++$r) { 
    699699                $rowtext = ''; 
    700                 for ($c = 0; $c < count($data); $c++) { 
     700                for ($c = 0; $c < count($data); ++$c) { 
    701701                    if (isset($colparams[$c])) { 
    702702                        $attribs = array_merge($rowparams, $colparams); 
Note: See TracChangeset for help on using the changeset viewer.