Housekeeping

This commit is contained in:
Peter Taoussanis 2012-12-06 16:38:07 +07:00
parent 9d1614afeb
commit 03684b6d28
2 changed files with 2 additions and 7 deletions

View file

@ -118,7 +118,7 @@ CDS (Clojure Documentation Site) is a contributor-friendly community project aim
## 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

View file

@ -82,8 +82,6 @@
(defprotocol Freezable (freeze [this stream]))
(comment (meta '^:DataOutputStream s))
(defmacro freezer
"Helper to extend Freezable protocol."
[type id & body]
@ -199,10 +197,7 @@
id-list (apply list (coll-thaw! s)) ; TODO OOMs for big colls
id-vector (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 {} (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-map (into {} (coll-thaw-pairs! s))
id-coll (doall (coll-thaw! s))
id-queue (into (PersistentQueue/EMPTY) (coll-thaw! s))