You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+26-7
Original file line number
Diff line number
Diff line change
@@ -22,18 +22,35 @@ See [here][GitHub releases] for earlier releases.
22
22
23
23
## Why Nippy?
24
24
25
-
- Small, simple **all-Clojure** library
25
+
- Small, simple **pure-Clojure** library
26
26
-**Terrific performance**: the [best](#performance) for Clojure that I'm aware of
27
27
- Comprehensive support for [all standard data types](../../wiki/1-Getting-started#deserializing)
28
28
- Easily extendable to [custom data types](../../wiki/1-Getting-started#custom-types)
29
-
-**Robust test suite**, incl. full coverage for every supported type
30
-
- Auto fallback to [Java Serializable](https://taoensso.github.io/nippy/taoensso.nippy.html#var-*freeze-serializable-allowlist*) when available
31
-
- Auto fallback to Clojure Reader for all other types (including tagged literals)
32
-
- Pluggable **compression** with built-in [LZ4](https://code.google.com/p/lz4/), [Zstandard](https://facebook.github.io/zstd/), etc.
33
-
- Pluggable [encryption](../../wiki/1-Getting-started#encryption) with built-in AES128
29
+
-**Robust test suite** incl. coverage of every supported type
30
+
-**Mature** and widely used in production for 12+ years
31
+
- Optional auto fallback to [Java Serializable](https://taoensso.github.io/nippy/taoensso.nippy.html#var-*freeze-serializable-allowlist*) for [safe](https://cljdoc.org/d/com.taoensso/nippy/CURRENT/api/taoensso.nippy#*freeze-serializable-allowlist*) types
32
+
- Optional auto fallback to Clojure Reader (including tagged literals)
33
+
- Optional smart **compression** with [LZ4](https://code.google.com/p/lz4/) or [Zstandard](https://facebook.github.io/zstd/)
34
+
- Optional [encryption](../../wiki/1-Getting-started#encryption) with AES128
34
35
-[Tools](https://taoensso.github.io/nippy/taoensso.nippy.tools.html) for easy + robust **integration into 3rd-party libraries**, etc.
35
36
- Powerful [thaw transducer](https://taoensso.github.io/nippy/taoensso.nippy.html#var-*thaw-xform*) for flexible data inspection and transformation
36
37
38
+
## Quick example
39
+
40
+
Nippy's super easy to use:
41
+
42
+
```clojure
43
+
(require '[taoensso.nippy :as nippy])
44
+
45
+
;; Freeze any Clojure value
46
+
(nippy/freeze <my-value>) ; => Serialized byte[]
47
+
48
+
;; Thaw the byte[] to get back the original value:
See the [wiki](https://github.com/taoensso/nippy/wiki/1-Getting-started#deserializing) for more.
53
+
37
54
## Operational considerations
38
55
39
56
### Data longevity
@@ -69,10 +86,12 @@ So starting with Nippy v3.4, Nippy's release notes will **always clearly indicat
69
86
70
87
## Performance
71
88
72
-
Since its earliest versions, Nippy has consistently been the **fastest serialization library for Clojure** that I'm aware of. Latest [benchmark](../../blob/master/test/taoensso/nippy_benchmarks.clj)results:
89
+
Since its earliest versions, Nippy has consistently been the **fastest serialization library for Clojure** that I'm aware of. Latest results:
0 commit comments