During the 1.7 => 1.8 upgrade `areduce` was fixed to not call `alength` on the same thing, at every single iteration step. However, `amap` which suffers from the same issue was not fixed (even though exactly the same fix applies).
Before (last time): 0.3930 ms
After (last time): 0.3459 ms
Screened by: Alex Miller
Not a problem. I actually noticed a very similar thing in the `internal-reduce` implementation for StringSeq . The `.length()` method is called on the same String on every single iteration step, even though it is a constant. Is that easy enough to be sorted without me submitting another trivial patch? Thanks in advance...
Separate ticket would be preferred, thanks.
Sure thing, I'll create it now.