Changeset 1474

Show
Ignore:
Timestamp:
12/09/07 01:58:50 (7 months ago)
Author:
Shadowhand
Message:

Removing some debugging code.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/modules/forge/controllers/forge_demo.php

    r1473 r1474  
    3030                $form->submit('Save'); 
    3131 
    32                 echo Kohana::debug(headers_list());exit; 
    33  
    3432                if ($form->validate()) 
    3533                { 
     
    5452        } 
    5553 
    56         public function bench() 
    57         { 
    58                 Benchmark::start('using_array'); 
    59                 $output = array(); 
    60                 for ($i = 0; $i < 1000; $i++) 
    61                 { 
    62                         $output[] = ($i % 2 == 0) ? 'a' : 'b'; 
    63                 } 
    64                 $output = implode('', $output); 
    65                 $array = Benchmark::get('using_array'); 
    66  
    67                 unset($i, $output); 
    68  
    69                 Benchmark::start('using_string'); 
    70                 $output = ''; 
    71                 for ($i = 0; $i < 1000; $i++) 
    72                 { 
    73                         $output .= ($i % 2 == 0) ? 'a' : 'b'; 
    74                 } 
    75  
    76                 $string = Benchmark::get('using_string'); 
    77  
    78                 echo Kohana::debug('imploded array: ', $array, 'string append: ', $string); 
    79         } 
    80  
    8154} // End