Re: Quick way to initialize array with all zeros
- From: "George Cherry" <GWCherryHatesGreenEggsAndSpam@xxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 14:37:28 -0400
"Andrew Thompson" <andrewthommo@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?
"Because I'm evil".
LOL, sometimes I crack me up. ;-)
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?)
(muses) maybe I should
have put all 'random' values..
Or--at least--initialize a different array in
each test.
George
.
- Follow-Ups:
- Re: Quick way to initialize array with all zeros
- From: Andrew Thompson
- Re: Quick way to initialize array with all zeros
- 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
- Quick way to initialize array with all zeros
- Prev by Date: Re: gl4java
- Next by Date: Re: Newbie Question: Problem with Tomcat and MySql
- 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):