On Mon, 2002-11-18 at 13:51, Geoffrey Talvola wrote: > Ian Bicking [mailto:[EMAIL PROTECTED]] wrote: > > ... though I do notice looking at > > ThreadedAppServer that > > the threads just poll a queue for a request instead of waiting for any > > sort of event, which seems bad -- maybe threading.Event should be used > > there. > > > > Has anyone paid attention to the performance of the AppServer when its > > idle? Is this polling a problem? > > I don't think there's any polling there. Each thread does a blocking .get() > on the queue. > > What part of the code made you think there was polling happening?
Oh, now I see -- I was confusing .get() with .get_nowait()... in part because the code catches Queue.Empty, which shouldn't ever be thrown when you call .get() blocking. Ian ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
