Merge pull request #7 from mpenet/perfs
Replace partial with an anonymous fn ((small) performance optimisation)
This commit is contained in:
commit
34508a79c7
1 changed files with 2 additions and 2 deletions
|
|
@ -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))))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue