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/phpgwapi/inc/class.xml.inc.php

    r6037 r7655  
    291291         
    292292        // Calculate the amount of whitespaces to display. 
    293         for ( $i = 0; $i < ( $level * 2 ); $i++ ) 
     293        for ( $i = 0; $i < ( $level * 2 ); ++$i ) 
    294294        { 
    295295            // Add a whitespaces to the string. 
     
    377377            { 
    378378                // Run through all children with the same name. 
    379                 for ( $i = 1; $i <= $pos; $i++ ) 
     379                for ( $i = 1; $i <= $pos; ++$i ) 
    380380                { 
    381381                    // Generate the full path of the child. 
     
    552552             
    553553            // Now run through the siblings. 
    554             for ( $i = 1; $i <= $siblings; $i++ ) 
     554            for ( $i = 1; $i <= $siblings; ++$i ) 
    555555            { 
    556556                // Create the name of the sibling. 
     
    564564                     
    565565                    // Increase the counter. 
    566                     $counter++; 
     566                    ++$counter; 
    567567                     
    568568                    // Add the old and the new name to the list of nodes 
     
    12151215         
    12161216        // Run through the string. 
    1217         for ( $i = 0; $i < strlen($term); $i++ ) 
     1217        for ( $i = 0; $i < strlen($term); ++$i ) 
    12181218        { 
    12191219            // Get the character at the position of the string. 
     
    12241224            { 
    12251225                // Increase the number of brackets. 
    1226                 $brackets++; 
     1226                ++$brackets; 
    12271227            } 
    12281228            elseif ( ( $character == ")" ) || ( $character == "]" ) ) 
     
    19221922            { 
    19231923                // Run through all childs with this name. 
    1924                 for ( $i = 1; $i <= $child_position; $i++ ) 
     1924                for ( $i = 1; $i <= $child_position; ++$i ) 
    19251925                { 
    19261926                    // Create the path of the child. 
     
    20762076            { 
    20772077                // Run through all children of this name. 
    2078                 for ( $i = 1; $i <= $child_position; $i++ ) 
     2078                for ( $i = 1; $i <= $child_position; ++$i ) 
    20792079                { 
    20802080                    // Create the full path for the children. 
     
    26692669             
    26702670        // Run through each argument and evaluate it. 
    2671         for ( $i = 0; $i < sizeof($arguments); $i++ ) 
     2671        for ( $i = 0; $i < sizeof($arguments); ++$i ) 
    26722672        { 
    26732673            // Trim each argument. 
     
    28402840             
    28412841        // Run through all arguments. 
    2842         for ( $i = 0; $i < sizeof($arguments); $i++ ) 
     2842        for ( $i = 0; $i < sizeof($arguments); ++$i ) 
    28432843        { 
    28442844            // Trim the string. 
     
    29112911         
    29122912        // Run through all arguments. 
    2913         for ( $i = 0; $i < sizeof($arguments); $i++ ) 
     2913        for ( $i = 0; $i < sizeof($arguments); ++$i ) 
    29142914        { 
    29152915            // Trim the argument. 
     
    33713371                         
    33723372                        // Run through the array of arguments. 
    3373                         for ( $i = 1; $i < sizeof($arguments); $i++ ) 
     3373                        for ( $i = 1; $i < sizeof($arguments); ++$i ) 
    33743374                        { 
    33753375                                // Add the number of the argument to the command. 
Note: See TracChangeset for help on using the changeset viewer.