On Oct 21, 6:45 pm, John Harrop <jharrop...@gmail.com> wrote:
> the reduction is wrapping the initial seq of empty vectors in ten
> thousand layers of map ... fn ... invoke ... map ... etc.
> Reducing a lazy sequence generator like map over a large sequence does not 
> work well in Clojure.

I wonder if this could be improved using some internal queuing or
trampoline or smth.
>From a [new] Clojure user perspective StackOverflow is totally
unexpected (and obviously undesired :-) ).

> Is there a reason not to use
>
> (defn multi-filter [filters coll]
>   (map filter filters (repeat coll)))
>
> instead?

Yes: in the real app the coll is coming from a file so I only want to
iterate it once plus I don't really want to keep it all in memory (I
never keep the head).

- Dmitry

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