On Thursday, 16 October 2014 18:04:39 UTC+8, Jony Hudson wrote: > > Thanks @Mikera. I had a look at using core.matrix, but what I couldn't > figure out is how to quickly get the data into core.matrix form. For > instance, if I take my PersistentList of Doubles from the example then > getting it into a vectors array takes: > > (criterium/quick-bench (array :vectorz a)) > > Execution time mean : 70.764422 µs > > > so for the example above I'm no better off overall. Obviously, the ideal > would be to use vectorz arrays all through the application, but I'm not sure > that's going to be so easy in this case. Is there a quick way to marshall > data into a vectorz vector? > > > Hmmm I think you've actually hit a performance issue in the conversion of Clojure vectors to Vectorz format. I just patched this in the latest core.matrix snapshot, the conversion is now around 20µs
-- 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.