Comment

Comment by ludston

To drill down into this, adding or removing from a vector or hashset in clojure is O(logn). This also means that random access is also O(logn).

Most operations on clojure persistent data structures are an order of magnitude less efficient than they are on the mutable equivalents, excepting a full copy which free due to it being unnecessary.

parent ludston 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton