logo       

Re: Webware vs. PHP - performance comparision!: msg#00027

python.cheetah

Subject: Re: Webware vs. PHP - performance comparision!

On Tue, Oct 07, 2003 at 11:13:21AM +0200, JZ wrote:
> Hello Mike,
>
> Tuesday, October 7, 2003, 7:38:34 AM, you wrote:
>
> >> >> The same pages works fast, and the
> >> >> same pages sometimes display after long delay.
>
> > Could it be the delay is happening the first time a new section is
> > hit, causing a time-consuming import? I'm having this at a site I'm
> > working on, and the delay is 30 seconds or more. The solution here
> > would be to pre-import the modules before the users notice.
>
> Is it possible that I could get such effect for the same pages? I jump
> from page to page and during coming back (sometimes) I have to wait. I
> have max. nr of threads set to 100. Am I working always within the
> same WebKit thread? Maybe after jumping from servlet to servlet I use
> another thread (or more that one) and I have to download all modules
> from the beginning? My sevlets are no small. E.g. the main servlet
> (index.py) displays several different cheetah templates which depend
> on parsed URL value.

What I was describing would happen only when a user hits a new page --
in a section that has not been accessed since the AppServer was
started. If you get a delay going back to the same page, it's
something else.

Imported modules (in fact, all data) are shared between threads --
that's the difference between a thread and a process. If two web
requests (=transactions) are being processed simultaneously, they are in
different threads. There are a couple non-thread ways to handle
simultaneous requests (Apache/PHP use multiple processes; Twisted uses
select()'s multiplexing capability), but Webware has chosen to use
threads.

--
-Mike Orr (aka. Sluggo), mso=r/QWpw4xmJA@xxxxxxxxxxxxxxxx
(iron@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise