As an aside: it's not clear to my why tokenize() would need to materialize the string. It should need to call getStringValue2().
-- You received this bug notification because you are a member of Zorba Coders, which is the registrant for Zorba. https://bugs.launchpad.net/bugs/921458 Title: file:read-text-lines() blocking Status in Zorba - The XQuery Processor: New Bug description: I wrote the following query: import module namespace file ="http://expath.org/ns/file"; for $line at $i in file:read-text-lines("doc.xml") return if($i lt 1104869) then () else concat($line, " ") Where doc.xml is a large document. The result of the query seems to never end and its memory footprint is huge. To manage notifications about this bug go to: https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions -- Mailing list: https://launchpad.net/~zorba-coders Post to : email@example.com Unsubscribe : https://launchpad.net/~zorba-coders More help : https://help.launchpad.net/ListHelp