It is intended, copy-on-write. No one has yet attempted persistent data
structures for ClojureScript.

Until then I think transient versions of the current data structures might
be useful if someone is willing to contribute them.

David

On Wed, Feb 15, 2012 at 1:24 PM, Takahiro Hozumi <fat...@googlemail.com>wrote:

> Hi,
> I found that assoc can be slow in ClojureScript.
> This is my app profile.
> http://twitpic.com/8kbupv/full
>
> I think the cause is that entire clone happen when assoc is called.
>
> https://github.com/clojure/clojurescript/blob/master/src/cljs/cljs/core.cljs#L2284
>
> Is this design choice intended for some reason?
> Thanks.
>
> --
> 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

-- 
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