From: Tom Anderson on
On Mon, 21 Jul 2008, Roedy Green wrote:

> On Sun, 20 Jul 2008 09:24:23 -0700, "Mike Schilling"
> <mscottschilling(a)hotmail.com> wrote, quoted or indirectly quoted
> someone who said :
>
>> When you measure things like elapsed time or CPU usage in the entire
>> application, how much difference does it make?
>
> I stupidly did not benchmark before the changes.

No, but you have the old version in source control, right?

Right?

tom

--
Sometimes it takes a madman like Iggy Pop before you can SEE the logic
really working.
From: Mark Space on
Tom Anderson wrote:

>
> No, but you have the old version in source control, right?
>
> Right?

Source code controls are for wimps! Real men just fill their VW bus
with back-up tapes!
From: Roedy Green on
On Tue, 22 Jul 2008 17:46:21 +0100, Tom Anderson
<twic(a)urchin.earth.li> wrote, quoted or indirectly quoted someone who
said :

>No, but you have the old version in source control, right?

OK, I suppose I could revive it. I suspect my code will improve much
more than average, so it would let you know if there is any hope of
sufficient improvement to justify the optimisation.

--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
From: Roedy Green on
On Tue, 22 Jul 2008 17:46:21 +0100, Tom Anderson
<twic(a)urchin.earth.li> wrote, quoted or indirectly quoted someone who
said :

>> I stupidly did not benchmark before the changes.
>
>No, but you have the old version in source control, right?


I used this method to optimise the initial sizes of the StringBuilders
used in the static macros program that expands the macros used to
generate the mindprod.com website. It does a great many StringBuilder.
appends, though it also does a fair bit of i/o as well, since it has
to read each file in the website. Here are the results:

Effect of StringBuilder Optimising
Time Before Optimising Time After Optimising % improvement
Sun 27.5 sec 24 sec 13%
Jet 25 sec 22.5 sec 10%
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
From: Mike Schilling on
Roedy Green wrote:
> On Tue, 22 Jul 2008 17:46:21 +0100, Tom Anderson
> <twic(a)urchin.earth.li> wrote, quoted or indirectly quoted someone
> who
> said :
>
>>> I stupidly did not benchmark before the changes.
>>
>> No, but you have the old version in source control, right?
>
>
> I used this method to optimise the initial sizes of the
> StringBuilders
> used in the static macros program that expands the macros used to
> generate the mindprod.com website. It does a great many
> StringBuilder.
> appends, though it also does a fair bit of i/o as well, since it has
> to read each file in the website. Here are the results:
>
> Effect of StringBuilder Optimising
> Time Before Optimising Time After Optimising % improvement
> Sun 27.5 sec 24 sec 13%
> Jet 25 sec 22.5 sec 10%

That is quite significant indeed. Thanks.