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)
commitc3bcb932f8f1dcfec1fb1236fcb48d9d6338c04c
tree8df6a3518d1cc0efe95b3659e69b475e5a978e69
parentee137b247f27cb7022598634f18eb7d286d813bd
parent75be3af188dcbc7a8d29764deae513b9cb022737
Merge: Small perf improvments of array

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>