file:read-text-lines() blocking
Bug #921458 reported by
William Candillon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Critical
|
Matthias Brantner |
Bug Description
I wrote the following query:
import module namespace file ="http://
for $line at $i in file:read-
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.
Related branches
lp:~zorba-coders/zorba/bug-921458
- Paul J. Lucas: Approve
- William Candillon: Approve
-
Diff: 291 lines (+222/-5)7 files modifiedChangeLog (+1/-0)
modules/org/expath/ns/file.xq (+1/-5)
modules/org/expath/ns/file.xq.src/file.cpp (+118/-0)
modules/org/expath/ns/file.xq.src/file.h (+64/-0)
modules/org/expath/ns/file.xq.src/file_module.cpp (+2/-0)
test/rbkt/ExpQueryResults/zorba/file/file_read_text_lines.xml.res (+32/-0)
test/rbkt/Queries/zorba/file/file_read_text_lines.xq (+4/-0)
Changed in zorba: | |
importance: | Undecided → High |
milestone: | none → 2.2 |
summary: |
- file:read-text-lines() not streaming? + file:read-text-lines() blocking |
description: | updated |
Changed in zorba: | |
importance: | High → Critical |
Changed in zorba: | |
assignee: | Matthias Brantner (matthias-brantner) → William Candillon (wcandillon) |
Changed in zorba: | |
milestone: | 2.2 → 2.5 |
Changed in zorba: | |
assignee: | William Candillon (wcandillon) → Matthias Brantner (matthias-brantner) |
Changed in zorba: | |
status: | New → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Here's the file: http:// dl.dropbox. com/u/1487285/ doc.xml