Housekeeping
This commit is contained in:
parent
9d1614afeb
commit
03684b6d28
2 changed files with 2 additions and 7 deletions
|
|
@ -118,7 +118,7 @@ CDS (Clojure Documentation Site) is a contributor-friendly community project aim
|
||||||
|
|
||||||
## Contact & Contribution
|
## Contact & Contribution
|
||||||
|
|
||||||
Reach me (Peter Taoussanis) at *ptaoussanis at gmail.com* for questions/comments/suggestions/whatever. I'm very open to ideas if you have any! I'm also on Twitter: [@ptaoussanis](https://twitter.com/#!/ptaoussanis).
|
Reach me (Peter Taoussanis) at [taoensso.com](https://www.taoensso.com) for questions/comments/suggestions/whatever. I'm very open to ideas if you have any! I'm also on Twitter: [@ptaoussanis](https://twitter.com/#!/ptaoussanis).
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,8 +82,6 @@
|
||||||
|
|
||||||
(defprotocol Freezable (freeze [this stream]))
|
(defprotocol Freezable (freeze [this stream]))
|
||||||
|
|
||||||
(comment (meta '^:DataOutputStream s))
|
|
||||||
|
|
||||||
(defmacro freezer
|
(defmacro freezer
|
||||||
"Helper to extend Freezable protocol."
|
"Helper to extend Freezable protocol."
|
||||||
[type id & body]
|
[type id & body]
|
||||||
|
|
@ -199,10 +197,7 @@
|
||||||
id-list (apply list (coll-thaw! s)) ; TODO OOMs for big colls
|
id-list (apply list (coll-thaw! s)) ; TODO OOMs for big colls
|
||||||
id-vector (into [] (coll-thaw! s))
|
id-vector (into [] (coll-thaw! s))
|
||||||
id-set (into #{} (coll-thaw! s))
|
id-set (into #{} (coll-thaw! s))
|
||||||
;; id-map (apply hash-map (coll-thaw! s)) ; OOMs for big colls
|
id-map (into {} (coll-thaw-pairs! s))
|
||||||
;; id-map (into {} (map vec (partition 2 (coll-thaw! s))) ; ~6.4x time
|
|
||||||
;; id-map (into {} (utils/pairs (coll-thaw! s))) ; ~1.8x time
|
|
||||||
id-map (into {} (coll-thaw-pairs! s)) ; ~0.8x time
|
|
||||||
id-coll (doall (coll-thaw! s))
|
id-coll (doall (coll-thaw! s))
|
||||||
id-queue (into (PersistentQueue/EMPTY) (coll-thaw! s))
|
id-queue (into (PersistentQueue/EMPTY) (coll-thaw! s))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue