Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The balanced binary tree of Data.Map is nowhere near state of the art in terms of persistent data structures. Clojure (and Haskell's unordered-containers library) use Hash Array Mapped Tries (HAMTs) which have a much higher branching factor (32-ary) than binary trees. In practice, this is a neglible difference from constant-time.


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

Search: