Re: Quick way to initialize array with all zeros



On Apr 1, 4:37 am, "George Cherry"
<GWCherryHatesGreenEggsAndS...@xxxxxxxxxxxx> wrote:
"Andrew Thompson" <andrewtho...@xxxxxxxxx> wrote in message

news:1175362082.877883.68360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

On Apr 1, 4:05 am, "George Cherry" <
..
Why did you fill the int array with 1's in the for loop test
and 0's in the Arrays.fill test?
....
Why not? I was (ever so slightly) worried that
the JIT compiler would notice the inefficiency of
doing something that had already been done, and
ignore the second call.

Oh. (Are JIT compilers that smart?)

Dunno' And further, I am not prepared to
waste time philosiphising about it.

(muses) maybe I should
have put all 'random' values..

Or--at least--initialize a different array in
each test.

Well.. altered code, different test results,
would be more than welcome on this thread..

How about it?

"Let the (altered) code (and test results) do
the talkin'"

(Anything short of that, is just theoretical
bullsh*t, as far as I am concerned.)

Andrew T.

.