Re: Quick way to initialize array with all zeros
- From: "Andrew Thompson" <andrewthommo@xxxxxxxxx>
- Date: 31 Mar 2007 10:50:01 -0700
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.
.
- References:
- Quick way to initialize array with all zeros
- From: 001
- Re: Quick way to initialize array with all zeros
- From: Patricia Shanahan
- Re: Quick way to initialize array with all zeros
- From: Andrew Thompson
- Re: Quick way to initialize array with all zeros
- From: George Cherry
- Re: Quick way to initialize array with all zeros
- From: Andrew Thompson
- Re: Quick way to initialize array with all zeros
- From: George Cherry
- Quick way to initialize array with all zeros
- Prev by Date: Re: About JTextPane, Why "Not equal" ?
- Next by Date: Re: Size
- Previous by thread: Re: Quick way to initialize array with all zeros
- Next by thread: Re: Quick way to initialize array with all zeros
- Index(es):