phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-users] Howto optimize phpgw for speed


From: Dan Kuykendall
Subject: Re: [Phpgroupware-users] Howto optimize phpgw for speed
Date: Tue, 04 Feb 2003 09:55:40 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2) Gecko/20021126

Yes, PHP's IMAP support is very slow. Angels has done lots and lots of experiments to try and improve the issue, but its tricky to do in web based apps because we cannot really do background processes.

Desktop clients like netscape and outlook have the ability to be displaying the interface to the user, and in the background do imap calls for the folder list. The other issue is browser rendering. Even if we can generate the list of emails faster, the browser then has to render these multi-nested tables and that takes time.

All in all there is alot of processing involved and caching is tricky.
When using DB sessions, we have a field limit, so caching the entire mailbox contents was often impossible. However with PHP4 sessions we no longer have that issue (btw I may work to yank db sessions in the next version since it offers very little benefit and causes lots of hassles). So it becomes possible to cache the mailbox contents, but we still have the issue of loading up all that data and processing it each and everytime. This should be faster, but is still not perfect. We also have the issue of resyncing this data. This would be better done as a background process. One possible solution for this is to have use frames and have a hidden 1x1 pixel frame that can be used to basicly reload without the user really seeing, and it can handle keeping the cache updated.

Lots of this is just ideas... Angel is doing the work on email and he will know best what will work and what wont.

Dan

Chris Weiss wrote:
The biggest part of this is that IMAP itself is inherently slow.  Netscape and
O'look keep a very aggressive cache which help them appear much faster because 
you
only downlaod a message once.  In php it's much harder to keep such a cache, 
but I
understand Angles is at the very least thinking about the different option to
decide how to implement it.

Make sure your web server's ip can be resolved fast by adding it to the hosts 
file
on teh imap server.  Consider running the IMAP server as a daemon instead of
through xINETD, this will improve responce times.  Install the latest from
anglemail.org and use the setup app to install it's new db table for caching.  
On
my little Celeron 300 i've brought my responce times down to under 4 seconds for
most emails, a faster server should do much better.

You can also enable the DEBUG_TIMER in header.inc.php to get a fairly accurate 
"php
processing time" displayed at the bottom of ever page.

Magnus Nilsson (address@hidden) wrote*:

I have now installed phpa version 1.3.4r1 and immediately noticed speed
improvements in calendar, notes, todo, infolog etc.

But no noticeable performance improvement in email,
and email is my primary goal to speed up since it is slow today.
Takes about 8sec to load my inbox.

HereĀ“s some figures I noticed after I have installed phpa.
Login consume around 6.7Mb of phpa cache.
start of email another 1Mb.
cal/todo/sitemgr.public_site only 100-200k.
Infolog around 2.5Mb.

After using pgpgw with phpa for a couple of hours my chace size has stabilized
at 11.5Mb.

Is there any way to time the amount of time it takes for email-app to login and
retrieve my inbox from imap? (to see how much time is consumed downloading data

from imap compared to the 8sec it takes for email app to show my inbox.)

/magnus


Hsing-Foo Wang (address@hidden) wrote:

I can confirm this. It's working over a year now without problems and
giving me a lot of speed increase for my php apps.

Installation is easy, install and forget.

Regards,
Hsing-Foo


-----Oorspronkelijk bericht-----
Van:
address@hidden
[mailto:address@hidden
org] Namens Jean-Pierre Schwickerath
Verzonden: maandag 3 februari 2003 20:16
Aan: address@hidden
Onderwerp: Re: [Phpgroupware-users] Howto optimize phpgw for speed


"Magnus Nilsson" <address@hidden> wrote:


How do I speed up application access in phpGW?
What is the optimal settings in php.ini


I haven't had the time to try it yet but there is a nice project at


http://www.php-accelerator.co.uk/

It seems to speed up php a lot.


Jean-Pierre


Nothing is impossible... Everything is relative!


_______________________________________________
Phpgroupware-users mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-users



_______________________________________________
Phpgroupware-users mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-users






_______________________________________________
Phpgroupware-users mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-users





_______________________________________________
Phpgroupware-users mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-users





reply via email to

[Prev in Thread] Current Thread [Next in Thread]