Zipmap doesn't use transients, so calling it at runtime will be significantly slower than constructing a literal map.
http://dev.clojure.org/jira/browse/CLJ-1005 On Friday, October 10, 2014 11:42:14 AM UTC-7, Michael Blume wrote: > > So I'm reading a bunch of rows from a huge csv file and marshalling those > rows into maps using the first row as keys. I wrote the function two ways: > https://gist.github.com/MichaelBlume/c67d22df0ff9c225d956 and the version > with eval is twice as fast and I'm kind of curious about why. Presumably > the eval'd function still implicitly contains a list of keys, it's still > implicitly treating each row as a seq and walking it, so I'm wondering what > the seq-destructuring and the map literal are doing under the hood that's > faster. > -- 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.