On 20 April 2012 07:38, Mark Engelberg <mark.engelb...@gmail.com> wrote:
> On Thu, Apr 19, 2012 at 11:31 PM, David Jagoe <davidja...@gmail.com>wrote: > >> >> Out of curiosity, why is this useful to you? >> > > It certainly has performance benefits. > > When things are tested for equality (e.g., to test against keys in a hash > map), identical things are the fastest to recognize as equal. Also, saves > on memory consumption and thus garbage collection. > Did you come across this implementation difference by noticing a performance difference? Or because you're using "identical?" on the result of dissoc? If the latter I would suggest that you may not want to rely on the behavior for maps, and that the difference is an implementation detail and not an inconsistency in (documented) interface. I can't really comment on the performance angle but I would be surprised if it was a performance problem in practice? Cheers, David > -- > 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 > -- David Jagoe davidja...@gmail.com +447535268218 -- 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