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
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
(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
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
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.
>>
>>
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
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
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
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