Re: PEAR::IMAP vs php's imap_* functions
| From: | myhan | Date: | Wed, 27 Aug 2003 03:01:04 +0000 |
| Subject: | Re: PEAR::IMAP vs php's imap_* functions | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7427@lists.php.net to get a copy of this message | ||
Hi, Borgz:
Thanks for your reply first.
I have decide to use imap_* funcs instead of Net_IMAP for my PHP is compiled
with imap.
I want to use Net_IMAP is for this reasion too, I won't to complie imap into
PHP.
But that is not necessary. For speed, I do it.
"Borgz" <php@cipri.com> дÈëÏûÏ¢ÐÂÎÅ
:20030826220324.37408.qmail@pb1.pair.com...
> "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.
>
> Cipri