A friend of mine had a problem parsing a large XML file using lazy-xml/
parse-trim, because it caused all of the input to be parsed at once:

http://paste.lisp.org/display/78235

It seems to me that the problem is fixed by applying a small patch
(uploaded as lazy-xml.patch), wrapping the calls to (drop-last sibs)
and (last sibs) within mktree in a lazy-seq. This might not be a good
solution, since I don't think I have quite grasped how lazy trees are
supposed to work; but since the siblings function loops lazily over
all the input from parse-seq, it seems logical that calling "last" on
its result should not be done right away.

Jouni K. Seppänen

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