> Does this mean that we should/will replace *all* vectors with
> ArrayLists or
> only specific ones? Will this not break some code?
>
ArrayList implements all Vector's functionality, it just isn't thread safe.
If you use it you have to synchronize manually.
>
>
> > on 5/24/01 1:25 AM, "Gareth Coltman" <[EMAIL PROTECTED]>
> wrote:
> >
> > > Guys,
> > >
> > > I was reading this report by sun about jdk1.2 and it had some
> benchmarks
> > > showing that ArrayLists perform significantly better than Vectors
> because
> > > the treadsafe code overhead isn't there. Is there a reason why you
> haven't
> > > used ArrayLists in classes where there are no threading issues such as
> > > peers? Is it worth the change?
> > >
> > > Gareth
> >
> > Wow, that sounds like a great way that you can contribute to the Turbine
> > project! :-)
> >
-> Replace In Files
---->What: Vector
---->With: ArrayList
Voila! My contribution to the Turbine project!
:P
Gareth
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]