PEAR::IMAP vs php's imap_* functions

From: Date: Tue, 26 Aug 2003 03:09:38 +0000
Subject: PEAR::IMAP vs php's imap_* functions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7410@lists.php.net to get a copy of this message
I did a simple test today to compare the speed between PEAR::IMAP lib and php's imap functions I found that PEAR::IMAP is slower than imap_* functions. Is it true ??? I just test list mailbox functions. echo "<pre>"; $timer =& new Benchmark_Timer(); $timer->start(); $imap =& new Net_IMAP($host, $port); $imap->login($user, $pass); print_r($imap->getMailboxes('')); $imap->disconnect(); //$mbox = imap_open("\{$host}", $user, $pass, OP_HALFOPEN) or die("can't connect: ".imap_last_error()); //$list = imap_getmailboxes($mbox, "\{$host}", "*"); //while (list ($key, $val) = each ($list)) { // echo str_replace("\{$host}", "", $val->name)."\n"; //} //imap_close($mbox); $timer->stop(); $timer->display();

« previous php.pear.general (#7410) next »