Share the benchmark! In theory, conversion to and from transients should be constant time operations, but it would not surprise me if in practice transients aren't universally faster than persistent.
Performance in different environments varies wildly, so I would doubt results from a small benchmark on a single machine are universally applicable. Benchmarking is hard, particularly on the jvm. Caching and dynamic inlining and Hotspot confuse matters greatly. Phil On Nov 8, 2012 10:49 PM, "Jim - FooBar();" <jimpil1...@gmail.com> wrote: > Some quick benchmarking that I did, showed that it is actually more > expensive to convert to transient, conj/assoc and convert back to > persistent than the regular conj/assoc unless you want to do more than 8 > operations at a time (preferably more than that). My experiments were on > vectors and the vararg version of assoc/assoc!. > > any thoughts? would you agree? > > Jim > > -- > 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+unsubscribe@**googlegroups.com<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/**group/clojure?hl=en<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