Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Persistent Vector Performance, summarised (hypirion.com)
38 points by michaelsbradley on May 18, 2015 | hide | past | favorite | 3 comments


I didn't read the whole blog series, but this data structure seems like it could support O(log(n)) insert/remove in middle or front. The equivalent operation in an ArrayList would take O(n).

Why not show off this performance advantage in the benchmark?


Clojure's built in PersistentVector does not support O(log(n)) inserts/removes from the middle/front, but there is another implementation that shares a lot of it's implementation with some extensions that does: https://github.com/clojure/core.rrb-vector/


Nit: most common cache line size is probably 32 bytes, due to smaller processors outnumbering desktop chips.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: