Re: Pmap on hash maps

2016-04-18 Thread myriam abramson
I like pmap too. I've set the number of processors call with a defonce to minimize the calls to this function to speed up pmap. What do ya think? (defn rt-num-processors [] (.availableProcessors (Runtime/getRuntime))) (defonce num-processors (rt-num-processors)) On Mon, Apr 18, 2016 at 1:31

Re: Pmap on hash maps

2016-04-17 Thread Mars0i
On Sunday, April 17, 2016 at 4:23:32 PM UTC-5, JvJ wrote: > > Orders of magnitude? Is it even worth running things in parallel in this > case? > I got a 2X-5X speed improvement with pmap, but as adrian says, it depends. The nice thing about pmap, though, is that using it just involves adding

Re: Pmap on hash maps

2016-04-17 Thread Erik Assum
(into a (pmap f a)) >>> >>> This will give the same result, but there's an extra collection in there >>> that I'm not sure is necessary. >>> >>> >>>> On Saturday, 16 April 2016 20:15:51 UTC-7, Alex Miller wrote: >>>> You can call pmap on hash

Re: Pmap on hash maps

2016-04-17 Thread adrian . medina
gt; >>> I know I could do something like: >>> >>> (into a (pmap f a)) >>> >>> This will give the same result, but there's an extra collection in there >>> that I'm not sure is necessary. >>> >>> >>> On Saturday, 16 April 20

Re: Pmap on hash maps

2016-04-17 Thread JvJ
calling it in such a way that >> the result is a hash map. >> >> I know I could do something like: >> >> (into a (pmap f a)) >> >> This will give the same result, but there's an extra collection in there >> that I'm not sure is necessary. >> >>

Re: Pmap on hash maps

2016-04-17 Thread Timothy Baldridge
collection in there > that I'm not sure is necessary. > > > On Saturday, 16 April 2016 20:15:51 UTC-7, Alex Miller wrote: >> >> You can call pmap on hash maps! > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" g

Re: Pmap on hash maps

2016-04-17 Thread JvJ
UTC-7, Alex Miller wrote: > > You can call pmap on hash maps! -- 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 p

Pmap on hash maps

2016-04-16 Thread Alex Miller
You can call pmap on hash maps! -- 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 u

Pmap on hash maps

2016-04-16 Thread JvJ
Does anyone know if there exists a convenient method to call something like pmap on a hash map? -- 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