Welcome Guest, Not a member yet? Register   Sign In
function preforms much worse on CI
#3

[eluser]idofr[/eluser]
tnx for the answer, i looked up some info about caching and i can't understand how would this help speed up my function. just so we'll understand each other better, here's the function:

Code:
$path = __FILE__;            
        $path = str_replace("application\models\pic_load.php","JSandProducts\\".$type,$path);
        
        $count = 0;
        $handle = opendir ($path);
        $file = readdir ($handle);
        $file = readdir ($handle);
        while (false != ($file=readdir ($handle)))
        {
            $count += 1;
        }
        closedir ($handle);
        unset ($path,$file,$handle);
        return $count;

tnx again


Messages In This Thread
function preforms much worse on CI - by El Forum - 06-02-2011, 01:11 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 03:38 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 03:46 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 04:04 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 04:21 PM
function preforms much worse on CI - by El Forum - 06-02-2011, 11:20 PM
function preforms much worse on CI - by El Forum - 06-03-2011, 02:56 AM
function preforms much worse on CI - by El Forum - 06-03-2011, 04:35 AM
function preforms much worse on CI - by El Forum - 06-03-2011, 05:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB