Micro optimization: destructure faster than explicit calls here
This commit is contained in:
parent
956ce7df7e
commit
1ae8e6c389
1 changed files with 3 additions and 3 deletions
|
|
@ -217,9 +217,9 @@
|
|||
`(freezer ~type ~id
|
||||
(.writeInt ~'out (* 2 (count ~'x))) ; *2 here is vestigial
|
||||
(encore/backport-run!
|
||||
(fn [kv#]
|
||||
(freeze-to-out ~'out (key kv#))
|
||||
(freeze-to-out ~'out (val kv#)))
|
||||
(fn [[k# v#]]
|
||||
(freeze-to-out ~'out k#)
|
||||
(freeze-to-out ~'out v#))
|
||||
~'x)))
|
||||
|
||||
(freezer (Class/forName "[B") id-bytes (write-bytes out ^bytes x))
|
||||
|
|
|
|||
Loading…
Reference in a new issue