On May 18, 2010, at 16:18 , braver wrote: > user=> (time (reps-sorted2? > dreps)) > "Elapsed time: 127606.905 msecs" > true > user=> (time (reps-sorted1? dreps)) > "Elapsed time: 8368.616 msecs" > true > > As you can see, the imperative solution vastly outperforms the > functional one, even though the functional allows for pmap! Without > the pmap, it actually did faster, in 40 seconds. Why is FP slower > here? > Out of curiosity, can you remove the pmap and run them in the opposite order? as first (time (reps-sorted1? dreps)) then (time (reps-sorted2? dreps))?
Regards, Heinz -- 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