On Mon, Jan 24, 2011 at 11:05 AM, Armando Blancas
<armando_blan...@yahoo.com> wrote:
>> This is much faster than either of the other eager-pmaps I posted to
>> this thread, and yet it's only using 60% CPU on my dual-core box. That
>> means there's still another x1.6 or so speedup possible(!) but I'm not
>> sure how.
>>
>
> Could -server make a difference here?

I did some more investigating of this. It seems that pmap itself only
uses ~70% CPU on my machine. The same happens with eager-pmap and with
the jumbled-pmap I just posted. All produce results comparably fast
when given a giant math problem to chug on.

Probably it's an artifact of the test cases mainly using jobs that
either are fast or use Thread/sleep to be artificially slow. I'm not
sure why this would persist when the unit of parallelization is a map
of the job over a sizable partition or the job has a busy-loop in it
instead of a Thread/sleep to make it heavyweight, though.

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

Reply via email to