diff --git a/README.md b/README.md index e76dd37..3a70870 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,16 @@ Current [semantic](http://semver.org/) version: ```clojure [com.taoensso/nippy "1.2.1"] ; Stable -[com.taoensso/nippy "2.0.0-alpha5"] ; Development (testers only!) +[com.taoensso/nippy "2.0.0-alpha5"] ; Development (notes below) ``` -2.x adds pluggable compression, crypto support (also pluggable), an improved API (including much better error messages), and hugely improved performance. It **is backwards compatible**, but please note that the old `freeze-to-bytes`/`thaw-from-bytes` API has been **deprecated** in favor of `freeze`/`thaw`. +2.x adds pluggable compression, crypto support (also pluggable), an improved API (including much better error messages), and hugely improved performance. It **is backwards compatible**, but please note that the old `freeze-to-bytes`/`thaw-from-bytes` API has been **deprecated** in favor of `freeze`/`thaw`. **PLEASE REPORT ANY PROBLEMS!** # Nippy, a Clojure serialization library Clojure's [rich data types](http://clojure.org/datatypes) are *awesome*. And its [reader](http://clojure.org/reader) allows you to take your data just about anywhere. But the reader can be painfully slow when you've got a lot of data to crunch (like when you're serializing to a database). -Nippy is an attempt to provide a reliable, high-performance **drop-in alternative to the reader**. It's used, among others, as the [Carmine Redis client](https://github.com/ptaoussanis/carmine) and [Faraday DynamoDB client]https://github.com/ptaoussanis/faraday) serializer. +Nippy is an attempt to provide a reliable, high-performance **drop-in alternative to the reader**. It's used, among others, as the [Carmine Redis client](https://github.com/ptaoussanis/carmine) and [Faraday DynamoDB client](https://github.com/ptaoussanis/faraday) serializer. ## What's in the box™? * Small, uncomplicated **all-Clojure** library. diff --git a/src/taoensso/nippy.clj b/src/taoensso/nippy.clj index 67072c0..abd87db 100644 --- a/src/taoensso/nippy.clj +++ b/src/taoensso/nippy.clj @@ -12,9 +12,6 @@ PersistentTreeSet IPersistentList IPersistentVector IPersistentMap IPersistentSet IPersistentCollection])) -;; TODO Allow ba or wrapped-ba input? -;; TODO Provide ToFreeze, Frozen, Encrypted, etc. tooling helpers - ;;;; Nippy 2.x+ header spec (4 bytes) (def ^:private ^:const head-version 1) diff --git a/src/taoensso/nippy/benchmarks.clj b/src/taoensso/nippy/benchmarks.clj index 0b2d554..41beb12 100644 --- a/src/taoensso/nippy/benchmarks.clj +++ b/src/taoensso/nippy/benchmarks.clj @@ -15,8 +15,7 @@ (def roundtrip-defaults (comp thaw freeze)) (def roundtrip-encrypted (comp #(thaw % {:password [:cached "p"]}) #(freeze % {:password [:cached "p"]}))) -(def roundtrip-fast (comp #(thaw % {}) - #(freeze % {:compressor nil}))) +(def roundtrip-fast (comp thaw #(freeze % {:compressor nil}))) (defn autobench [] (println "Benchmarking roundtrips")