Re: Re: PEAR::IMAP vs php's imap_* functions

From: Date: Wed, 27 Aug 2003 13:34:56 +0000
Subject: Re: Re: PEAR::IMAP vs php's imap_* functions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-20636@lists.php.net to get a copy of this message
--- thread moved here from pear-general --- On 27 Aug 2003 at 0:04, Borgz wrote: > "Myhan" <myhan@liumeiti.com> wrote in message > news:20030826030854.32825.qmail@pb1.pair.com... > > 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. > I can easily see it being slower. The Net_Imap is actually a script > that uses Net_Socket to connect to the IMAP server. The build-in > imap_* functions, ofcourse do roughly the same, bt they are written in > C, while the PEAR modules are written in PHP, which creates a > significant overhead. > > I guess the Net_Imap package, like the Mail_Mime and many other > packages are created for those cases where imap isn't compiled into > PHP, but you still need to access an IMAP server. If php's functions are present - should Net_IMAP maybe be a wrapper and use the php-functions transparently when they exist? Would that be possible? Stefan

« previous php.pear.dev (#20636) next »