Do you know how much a StringBuffer grows by? Is it a fraction of
the current, or a fixed amount?
Also, OptimizeIt is very cool - I have a license myself. :)
Aaron
On Tue, 20 Jun 2000, Rickard [iso-8859-1] �berg wrote:
> Hey
>
> I just tried OptimizeIt and ran the performance tests. Very interesting.
> OptimizeIt is a very cool tool. Now I know for sure where the
> bottlenecks are.
>
> The funny thing is that 15% of the time (the biggest part actually!) is
> spent in StringBuffer.expandCapacity. So, we need to check through the
> code and make sure that string buffers aren't being created too short,
> or they will be constantly expanding/copying.
>
> I think I'll actually buy OptimizeIt :-)
>
> /Rickard
>
> --
> Rickard �berg
>
> @home: +46 13 177937
> Email: [EMAIL PROTECTED]
> http://www.telkel.com
> http://www.jboss.org
> http://www.dreambean.com
>