Merge: Small perf improvments of array
authorJean Privat <jean@pryen.org>
Thu, 3 Dec 2015 19:20:48 +0000 (14:20 -0500)
committerJean Privat <jean@pryen.org>
Thu, 3 Dec 2015 19:20:48 +0000 (14:20 -0500)
Factorize and improve some code related to the Array (and fix a bug)

A NativeArray::memmove method is also added, but without an intern implementation for boostrap reason.

The improvement should mainly concern client of `shift`, `unshift` and `insert` (not that many in fact).
Using the new test bench_seq (with only the array and an argument of 5000)
Before: 0m1.828s
After:  0m0.292s (-84%)

Pull-Request: #1871
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>


Trivial merge