Merge: Reuse Array Iterators
authorJean Privat <jean@pryen.org>
Sat, 7 Mar 2015 05:17:28 +0000 (12:17 +0700)
committerJean Privat <jean@pryen.org>
Sat, 7 Mar 2015 05:17:28 +0000 (12:17 +0700)
commit7bc887dd2881245a652061a16fcd5796b37a0024
tree6700c285ce83e6b33b52de88b26103744ea90da9
parent3a9bf184ddd991ebb666863a8319696f853bd108
parent47c883fac3a51e2d91098c7e8f0484b86c001455
Merge: Reuse Array Iterators

on nitc/nitc/nit this reduce a lot the number of allocated iterators.

before:

* 0m7.168s
* 2,706,498 new ArrayIterator
* the second most allocated class (after NativeArray)

after:

* 0m7.060s (-1.5%)
* 785,781 new ArrayIterator (-70%)
* the 7th most allocated class

Pull-Request: #1190
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/standard/collection/array.nit