At 10:00 AM 6/4/01 -0700, Tavis Rudd wrote:
>On Monday 04 June 2001 07:41, Geoff Talvola wrote:
> > I also argued that we'd be better off storing the threads
> > on a stack instead of a queue. That way the most
> > recently used threads get reused, which may produce
> > slightly better performance. I wonder if there's a
> > thread-safe Stack class analogous to the Queue class that
> > comes with Python?
>
>Good idea. I've never heard of a Stack class like this but it
>would be very easy to create a subclass of Queue that has
>LIFO rather than FIFO behaviour. Do you think it would make
>much of a difference?
I think it would probably make very little difference, because there is
very little data associated with each thread.
For similar reasons, Servlet objects should also be cached in Stacks
instead of Queues. This would make a noticeable difference if the servlet
objects were very large. But again, this probably wouldn't be noticeable
except in contrived examples.
--
- Geoff Talvola
[EMAIL PROTECTED]
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel