Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Emitting large XML documents, fed from lazy-seqs in data.xml does not work. Currently, the lazy-seq is held in a defrecord, which holds onto the head of the lazy-seq and will force it to all be in memory (eventually consuming all available memory). Example code to reproduce the issue below:
Unable to find source-code formatter for language: clojure. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
(with-open [fw (java.io.FileWriter. "/tmp/lots-of-foo.xml")] (xml/emit (Element. :some-tags {} (map #(Element. :foo {} [(str "foo" %)]) (range 0 10000000))) fw))
Activity
Ryan Senior
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | In Progress [ 3 ] |
Ryan Senior
made changes -
| Resolution | Completed [ 1 ] | |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
Ryan Senior
made changes -
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
| Resolution | Completed [ 1 ] |
Ryan Senior
made changes -
| Status | Reopened [ 4 ] | In Progress [ 3 ] |
Ryan Senior
made changes -
| Resolution | Completed [ 1 ] | |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
Fixed