Merge: lib/standard: optimize Array.to_s
authorJean Privat <jean@pryen.org>
Tue, 26 Aug 2014 22:56:25 +0000 (18:56 -0400)
committerJean Privat <jean@pryen.org>
Tue, 26 Aug 2014 22:56:25 +0000 (18:56 -0400)
Micro-optimized version of Array::to_s based on the results of benchmarks available in PR #685.

`./bin/nitg ./src/nitg.nit`
Before : `15.080 s`
After : `13.928 s`

Pull-Request: #686
Reviewed-by: Jean Privat <jean@pryen.org>

1  2 
lib/standard/collection/array.nit
tests/sav/test_new_native_alt1.res

Simple merge
@@@ -1,4 -1,4 +1,4 @@@
- Runtime error: Cast failed. Expected `NativeArray#0`, got `Bool` (../lib/standard/collection/array.nit:753)
 -Runtime error: Cast failed. Expected `NativeArray#0`, got `Bool` (../lib/standard/collection/array.nit:742)
++Runtime error: Cast failed. Expected `NativeArray#0`, got `Bool` (../lib/standard/collection/array.nit:755)
  NativeString
  N
  Nit