fn:tokenize() doesn't stream

Bug #898074 reported by William Candillon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
Critical
Matthias Brantner

Bug Description

The following query:
let $content := file:read-text("huge_file.txt")
return tokenize($content, "\s")

doesn't stream the result.

Related branches

Changed in zorba:
importance: Undecided → Critical
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

Making tokenize stream would be really difficult. The reason being that the pattern can be an arbitrary regular expression which is a lot of cases would require to materialize the entire stream anyway.

Hence, I'm suggestion that we define our own string:tokenize function which accepts only separators instead of regular expressions and make this work in a streaming fashion. Would that also do the job?

Changed in zorba:
milestone: none → 2.2
Revision history for this message
William Candillon (wcandillon) wrote :

Sound's good for me.

Changed in zorba:
assignee: nobody → Matthias Brantner (matthias-brantner)
Changed in zorba:
status: New → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.