From b91ab8e0315388503842ca36b56c8cecdb75faad Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Sun, 14 Apr 2013 14:47:09 +0700 Subject: [PATCH] Fix OOM issue for large lists --- src/taoensso/nippy.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taoensso/nippy.clj b/src/taoensso/nippy.clj index 75e37c2..c0057ca 100644 --- a/src/taoensso/nippy.clj +++ b/src/taoensso/nippy.clj @@ -209,7 +209,7 @@ id-sorted-set (into (sorted-set) (coll-thaw! s)) id-sorted-map (into (sorted-map) (coll-thaw-kvs! s)) - id-list (apply list (coll-thaw! s)) ; TODO OOMs for big colls + id-list (into '() (reverse (coll-thaw! s))) id-vector (into [] (coll-thaw! s)) id-set (into #{} (coll-thaw! s)) id-map (into {} (coll-thaw-kvs! s))