lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre StĂžlsvik <>
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..


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message