The trouble with pmap is that it only works well with a slow function and a short sequence. In trivial tests, it seems to be best if the sequence has as many elements as you do cores.
I've been experimenting with things that are like pmap, but work better in situations that I care about. I'm having trouble getting full performance out of a quad-core machine, but dual-core is working pretty well so far. Here's some discussion with a link to sample code: http://groups.google.com/group/clojure/browse_thread/thread/963cdb76f0c3c178 And here's my personal utility file containing mostly re- implementations of things I didn't know where to find. The zpmap function is an eager parallel map that works well on large vectors and maps with a fairly fast function: http://github.com/zakwilson/zutil-clj/blob/master/util.clj -- 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