> pmap creates a future for every
> element of the sequence you give it, and that is significantly more
> computation work (allocating, initializing, and invoking future objects)
> than your function that simply returns 1 regardless of the value of its
> argument.

Makes perfect sense. Thanks for clarifying this.

> I realize your example is probably a practice one intended to try out a
> map/reduce style of coding, but you would probably get even further speedup
> by using (count file-handle) in place of your reduce call.

Yup, just a dummy practice problem. Still a good tip though. Thanks
for taking the time to answer my question.

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