azu / immutable-array-prototype

A collection of Immutable Array prototype methods(Per method packages).
MIT License
59 stars 3 forks source link

Perf: splice improvement #25

Closed azu closed 7 years ago

azu commented 7 years ago

Currently, splice() slow 3x vs. native Array#splice

Native                                         :   @immutable-array/splice
# splice 200000 times            <<<   # splice 200000 times
ok ~273 ms (0 s + 273138691 ns)  <<<   ok ~624 ms (0 s + 623533828 ns

We want to improve this.

azu commented 7 years ago

https://github.com/azu/immutable-array-prototype/commit/aafdd7c89ddc4254b38342774ae6123f946c9619