Benchmarks are available here, and the Clojure benchmarks make use of transients wherever possible: https://github.com/lacuna/bifurcan/blob/master/doc/benchmarks.md.
More generally, while transients are often used in practice to quickly construct a read-only data structure, the more formal definition is that they provide an O(1) mechanism for transforming between immutable and mutable forms. This isn't possible with purely mutable data structures like Java's HashMap or Bifurcan's LinearMap. So while wrapping these data structures in the Clojure API would provide better performance for construction and lookups, it wouldn't be quite the same thing as a transient. On Mon, Mar 27, 2017 at 10:05 AM Michael Gardner <gardne...@gmail.com> wrote: > > > On Mar 27, 2017, at 09:51, Zach Tellman <ztell...@gmail.com> wrote: > > > > They also provide high-performance mutable variants of the data > structure which share an API with their immutable cousins. > > How does their performance compare to Clojure's transients? Transients are > slower than Java's native mutable collections, so if the mutable > collections in this library deliver the same performance as the latter, > they could act as a drop-in replacement for the former (given a compatible > Clojure wrapper). > > -- > 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 a topic in the > Google Groups "Clojure" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/clojure/1m_I7IrDGb0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.