Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The static compiler should be able to optimize foreach style loops if the collection type is an array type:
int[] arr = ... for(int x: arr) { ... }
Currently it relies on an iterator, making it much slower than it could be.