Ignore:
Timestamp:
Dec 7, 2011 4:29:56 AM (18 months ago)
Author:
alec
Message:
  • Cleanup + perf. improvement (substr_count() is really fast!)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_result_index.php

    r5557 r5561  
    158158            $this->meta['length'] = 0; 
    159159        } 
    160         else 
    161             // @TODO: check performance substr_count() vs. explode() 
     160        else { 
    162161            $this->meta['count'] = 1 + substr_count($this->raw_data, self::SEPARATOR_ELEMENT); 
     162        } 
    163163 
    164164        return $this->meta['count']; 
     
    186186    { 
    187187        if (!isset($this->meta['max'])) { 
    188             // @TODO: do it by parsing raw_data? 
    189188            $this->meta['max'] = (int) @max($this->get()); 
    190189        } 
     
    202201    { 
    203202        if (!isset($this->meta['min'])) { 
    204             // @TODO: do it by parsing raw_data? 
    205203            $this->meta['min'] = (int) @min($this->get()); 
    206204        } 
Note: See TracChangeset for help on using the changeset viewer.