On Feb 11, 5:07 am, Marko Topolnik <marko.topol...@gmail.com> wrote:
> http://db.tt/iqTo1Q4
>
> This is a sample XML file with 1000 records -- enough to notice a
> significant delay when evaluating the code from the original post.
>
> Chouser, could you spare a second here? I've been looking and looking
> at mktree and siblings for two days now and can't for the life of me
> find out why it would eagerly parse the whole contents of an element
> as soon as I acces its struct! The code looks perfectly correct.

Just guessing, but is it something to do with this (from the docstring
of parse-seq)?

"it will be run in a separate thread and be allowed to get
  ahead by queue-size items, which defaults to maxint".

Doesn't sound like it's actually lazy unless you explicitly specify a
queue-size.


- Chris

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