Hi,

On Aug 8, 8:25 pm, gary ng <garyng2...@gmail.com> wrote:

> Interesting to know. Just curious which one is more efficient(not that
> I question the vector append is slow) as it would still involve some
> array copy and creation(though I assume it would be very efficient as
> it is using the very low level i.e. sort of memcpy) whereas the
> single-link-list cons would always be O(1).

I'm bit confused about what you mean here, but vector append (read:
conj) is O(1) (don't nail me down on whether it's amortised). There is
no array copying going on underneath.

Sincerely
Meikel

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to