lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre StĂžlsvik <En...@stolsvik.com>
Subject Re: [jira] Created: (LUCENE-1257) Port to Java5
Date Fri, 11 Apr 2008 07:28:51 GMT
robert engels wrote:

> 
> The 'foreach' should be faster in the general case for arrays as the 
> bounds checking can be avoided.

Why is that? Where do you mean that the bounds-checking can be avoided?

> 
> But, I doubt the speed difference is going to matter much either way, 
> and eventually the JVM impl will converge to near equal performance.

This I actually agree on: if the foreach has some disadvantage of 
explicit indexing through an array, it will at some point be fixed so 
that it doesn't have this disadvantage anymore..

Endre.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message