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 the maximum array size adjustable #21

Open treeowl opened 3 years ago

treeowl commented 3 years ago

We currently hard-code 5, 32, 0x1f, etc., throughout the module. It would be better to use top-level constants (or, better, parameterize the package with backpack, however that works). Completely aside from allowing performance experiments, this will allow testing with smaller arrays. Using arrays of length 8 or even 4 would let us test with much deeper trees than we can now.