diff options
author | Paul Phillips <paulp@improving.org> | 2011-12-12 06:40:18 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-12-12 13:12:28 -0800 |
commit | 4cfc633fc6cb2ab0f473c2e5141724017d444dc6 (patch) | |
tree | 2c2467b923f369aa61baa5550bcdb2894b51bc3c /build.examples.xml | |
parent | d1e3b46f5bf58469bffb6f8e2ffebd932b990a5d (diff) | |
download | scala-4cfc633fc6cb2ab0f473c2e5141724017d444dc6.tar.gz scala-4cfc633fc6cb2ab0f473c2e5141724017d444dc6.tar.bz2 scala-4cfc633fc6cb2ab0f473c2e5141724017d444dc6.zip |
Range.foreach optimization.
This makes code like
0 to 100 foreach (x += _)
as fast as (often faster than, in fact) a while loop. See the
comment in Range for the gory details. More investigation should
be done regarding total impact on inlining behavior.
Review by @odersky.
Diffstat (limited to 'build.examples.xml')
0 files changed, 0 insertions, 0 deletions