From 8305f304990343ec9ae2abeca6a6a3421397471e Mon Sep 17 00:00:00 2001 From: Max Penet Date: Sun, 2 Jun 2013 17:54:44 +0200 Subject: [PATCH] replace partial with an anonymous fn (performance optimisation) --- src/taoensso/nippy.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/taoensso/nippy.clj b/src/taoensso/nippy.clj index c0057ca..0817e23 100644 --- a/src/taoensso/nippy.clj +++ b/src/taoensso/nippy.clj @@ -182,7 +182,7 @@ (defn coll-thaw! "Thaws simple collection types." [^DataInputStream s] - (repeatedly (.readInt s) (partial thaw-from-stream!* s))) + (repeatedly (.readInt s) #(thaw-from-stream!* s))) (defn coll-thaw-kvs! "Thaws key-value collection types." @@ -234,7 +234,7 @@ id-old-reader (read-string (.readUTF s)) id-old-string (.readUTF s) id-old-map (apply hash-map (repeatedly (* 2 (.readInt s)) - (partial thaw-from-stream!* s))) + #(thaw-from-stream!* s))) (throw (Exception. (str "Failed to thaw unknown type ID: " type-id))))))