travitch / persistent-vector

Persistent vectors for Haskell based on array mapped tries
BSD 3-Clause "New" or "Revised" License
27 stars 4 forks source link

Make snoc force structure #23

Closed treeowl closed 3 years ago

treeowl commented 3 years ago

snoc was much too lazy. It produced thunks all over the place, including lazily deferring converting the tails to arrays. That may well explain the poor GC performance with this package. I believe this should fix it.

Fixes #22

travitch commented 3 years ago

Yikes, thanks!