Reducers can perform fewer allocations than lazy seqs, but that does not 
automatically translate into a big speed difference, especially with your 
trivial example.

Try comparing chained lazy seq ops (map, mapcat, filter, take, drop, etc) to an 
equivalent chain of reducer calls: you may see a more pronounced speed 
difference.

Reducers can also be foldable (thus parallel) if the source data structure 
supports it but are not so automatically. Try r/foldcat or r/fold to possibly 
see pmap speeds.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to