On Aug 10, 12:18 pm, Tom Emerson <tremer...@gmail.com> wrote: > Hello Clojurians, > > file-seq gives me a convenient way to get a seq of all these files. > What I would like to do is process elements in this sequence in > parallel. My first thought was to process the seq with pmap, but this > is suboptimal because I'm not interested in saving the return value of > function called on each file. >
Hi Tom, I built something that does something similar to what you're describing. There's likely a better way to do what I've done, but you still may be interested to see it: http://github.com/harold/p4check/tree/master It uses agents to achieve parallelism, and runs quite fast and soaks the cpus in my multi-core machine nicely. It's much faster than the previous single-threaded version was. Hope that helps, -Harold --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---