On Sun, Jan 4, 2009 at 2:55 PM, Jason Wolfe <jawo...@berkeley.edu> wrote: > > Now that I think about it some more, though, this change doesn't > really address the whole problem. > > ; Time to queue up and dequeue a bunch of elements > user> (doseq [n '(10 100 1000 10000 100000)] > (do (prn n) > (time (loop [n n s [-1]] > (if (zero? n) > s > (recur (dec n) (subvec (conj s n) 1)))))))
Have you considered using clojure.lang.PersistentQueue instead of vector and subvec? --Chouser --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---