"Kevin A. Burton" wrote:
> 
> Rapha�l Luta wrote:
> <snip>
> > > - Portlets need to be thread safe.  I am going be creating these left
> > > and right within the Engine.  In the future we might have a tag
> > > interface which Jetspeed can use to buffer up multiple Portlets in a
> > > pool and then have only one thread process these at once... but not
> > > right now.
> > >
> >
> > 1.3 but I think this would provide *major* performance improvement.
> 
> I actually don't see that pooling will improve performance.  It is still
> the same code being executed.  In fact it might slow performance in that
> Jetspeed has to mark synchronized a single thread across each portlet
> and making sure new instances are available, etc.  It would only be for
> Portlets that need to be thread safe... which is bad code anyway.
> 

I think the time gained in unnecessary instanciation/garbage collecting
will more than offset the synchronized code, and it will contribute to 
reduce the memory footprint of the system, thus perhaps avoiding swapping
on some systems. On high end systems, this won't have a great impact, but
on the lower end I think this will provide a significant improvement.

--
Rapha�l Luta - [EMAIL PROTECTED]


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to