swannodette / mori

ClojureScript's persistent data structures and supporting API from the comfort of vanilla JavaScript

Home Page:http://swannodette.github.io/mori

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why thaw/freeze in benchmarks is so much faster?

buger opened this issue · comments

Can you point how its possible that thaw/freeze is faster then simple native Array.push?
I can't find any details on implementation.

@buger likely because the underly JS array must be resized several times. Vector nodes never get larger than 32 elements.