Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.rrb-vector by
I am trying to build rrb-vectors by concatenating singleton vectors at the beginning. I am doing to deliberatelly create relaxed structures, as part of a research project I am conducting on RRB-Trees.  However it seems that this causes a stack overflow (I guess, due to some bug in the RRB-Vector structure?):

(def benchmark-size 100000)

(defn vector-push-f [v]
  (loop [v v
         i 0]
    (if (< i benchmark-size)
      (recur (fv/catvec (fv/vector i) v)
             (inc i))
      v)))

(def benchmark-rrb-vector-f (vector-push-f (fv/vector)))

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CRRBV-17 (reported by alex+import)
...