On Wed, Apr 8, 2009 at 4:07 PM, Jouni K. Seppänen <j...@iki.fi> wrote: > > 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.
Thanks for the report. I've checked in a change (rev 656) that I think will solve the problem. Let me know if it isn't sufficient. --Chouser --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---