Uploaded image for project: 'data.json'
  1. DJSON-26

write-object can retain head of collections

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      If serializing a large data structure, the write-object function will retain head references, causing memory pressure.

      The problem code looks to me like a typo:

      https://github.com/clojure/data.json/blob/master/src/main/clojure/clojure/data/json.clj#L322

      calling seq on the parameter of the function, rather than the loop variable. That keeps the parameter in-scope during the recursion.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: