Peter Taoussanis
3093eae322
Experimental: add freeze-fallback-as-str fn
2013-12-03 16:46:30 +07:00
Peter Taoussanis
43c85059d7
Throw on freeze (rather than thaw) when trying to freeze an unreadable object with pr-str
2013-12-03 16:22:52 +07:00
Peter Taoussanis
1a7812522c
Experimental: add inspect-ba util for inspecting possibly-frozen data
2013-12-03 16:22:51 +07:00
Peter Taoussanis
730b8774c4
Utils: housekeeping, update bench, memoized
2013-11-08 21:45:28 +07:00
Peter Taoussanis
0fd9275e37
Experimental compressable-lzma2: fix thaw bug
2013-11-07 12:47:36 +07:00
Peter Taoussanis
da1622f271
Experimental: add Compressable-LZMA2 type & (replaceable) de/serializer
2013-11-06 13:58:55 +07:00
Peter Taoussanis
7e7975910a
tools: fix thaw arg destructuring & opt merging
2013-11-05 22:41:51 +07:00
Peter Taoussanis
84e336fe65
Make byte transform on seqs 1-to-1, re-add ISeq as a fallback implementation
2013-10-31 13:29:34 +07:00
Peter Taoussanis
aa78ad6a0b
Rename test type: :coll->:lazy-seq
2013-10-31 13:16:26 +07:00
Peter Taoussanis
b1dab1dc4b
Add debug-mode flag
2013-10-31 13:15:22 +07:00
Peter Taoussanis
8f8ab99e95
Add some Serializable tests (exceptions)
2013-10-24 13:55:47 +07:00
Peter Taoussanis
9448d2b3ce
Add Java's Serializable as a pre-Reader fallback mechanism
2013-10-24 13:55:47 +07:00
Peter Taoussanis
c58bf97af7
Move Record test into stress data
2013-10-24 13:55:47 +07:00
Peter Taoussanis
5c48ba8e26
Reduce amount of (unnecessary) freeze procotol extensions to interfaces
...
These can cause confusing, inconsistent behaviour when the protocol dispatch
needs to choose between multiple implementations:
Ref. https://groups.google.com/forum/#!topic/clojure-dev/-zoLA78--Mo
The approach as of this commit is more robust and allows more flexibility in
extension.
2013-10-24 13:55:47 +07:00
Peter Taoussanis
75dd0d9040
Remove tagged literal labels for uuid & date (both have been baked-in for some time)
2013-10-24 13:55:47 +07:00
Peter Taoussanis
a122e62fe0
Reposition freeze-to-stream! fn for clarity
2013-10-24 13:55:47 +07:00
Peter Taoussanis
26f32c7a95
Housekeeping
2013-10-24 13:34:38 +07:00
Peter Taoussanis
33eee786be
Lower default LZMA2 compression level -> 0 (much better perf @ ~same ratio)
2013-10-19 18:17:47 +07:00
Peter Taoussanis
3879cf4d62
Add experimental LZMA2 compressor for higher compression ratios than Snappy
2013-10-19 15:37:38 +07:00
Peter Taoussanis
512aca32aa
Housekeeping
2013-10-19 13:51:58 +07:00
Peter Taoussanis
f6d5ebd862
Revert "add fast-path encoding for long, doubles, keywords, and strings"
...
This reverts commit a92c493375 .
As per https://github.com/ptaoussanis/nippy/pull/31 , tests appear to be
inconclusive about the effetcs of this commit. Candidate for future
reconsideration.
2013-10-17 17:44:54 +07:00
Peter Taoussanis
ae0a2e7907
Update benchmarks
2013-10-12 16:45:19 +07:00
Zach Tellman
a92c493375
add fast-path encoding for long, doubles, keywords, and strings
2013-10-12 16:45:19 +07:00
Zach Tellman
5492c1ea0f
don't iterate twice over uncounted seqs, and use explicit key/val accessors for kv-collections, appears to give ~25% improvement in 'freeze'
2013-10-12 16:45:19 +07:00
Peter Taoussanis
1b27c1be7a
v2.2.0
2013-10-03 21:21:59 +07:00
Peter Taoussanis
49fbbf270f
Deps
2013-09-25 16:11:22 +07:00
Peter Taoussanis
6cce8a2857
Housekeeping: docstring typo
2013-08-08 14:22:46 +07:00
Peter Taoussanis
2061dd0868
Add & _ arg for thaw-from-stream!
2013-08-07 18:43:04 +07:00
Peter Taoussanis
d15a12af76
Update benchmarks
2013-08-07 18:29:36 +07:00
Peter Taoussanis
08f2cb1273
Use *data-readers* value for edn/read-string
2013-08-07 17:52:58 +07:00
Peter Taoussanis
d3120f0246
Remove :print-dup? option (no longer useful since switch to edn/read-string)
2013-08-07 17:52:00 +07:00
Peter Taoussanis
efa56eca73
Use tools.reader.edn in benchmarks
2013-08-07 17:37:22 +07:00
Peter Taoussanis
05907403dc
Revert 8e4cc07 (unnecessary, slower)
2013-08-07 17:37:22 +07:00
Peter Taoussanis
3addeed195
Swap IPersistentMap -> APersistentMap
2013-08-07 17:37:22 +07:00
Peter Taoussanis
8e1d649bcb
Swap IPersistentCollection->ISeq (the former seems to interfere with IRecord dispatch)
2013-08-07 17:37:22 +07:00
Peter Taoussanis
a76734a25a
Housekeeping, add test for records with custom extension
2013-08-07 17:30:13 +07:00
James Reeves
5442216343
Add a fast serialization for UUID objects
2013-08-07 10:21:10 +01:00
James Reeves
8b13ff68b9
Add a fast serialization for Date objects
2013-08-07 10:19:53 +01:00
Peter Taoussanis
e48ccb4c45
Merge pull request #26 from weavejester/fast-records
...
Fast serialization for records
2013-08-06 23:54:33 -07:00
James Reeves
6ab00df42c
Add fast serialization for records
2013-08-06 17:56:43 +01:00
James Reeves
6caff3503e
Remove read-eval option made unnecessary by EDN reader
2013-08-06 16:59:04 +01:00
James Reeves
6024a9cc31
Replace unsafe Clojure reader with safe EDN reader
2013-08-06 16:45:30 +01:00
Peter Taoussanis
c69bb0ec5f
Perf: only set bindings when necessary
2013-08-02 21:28:51 +07:00
Peter Taoussanis
4071d0f3ec
Switch to simpler extend-freeze, extend-thaw custom type API (ALPHA)
2013-08-02 21:28:51 +07:00
Peter Taoussanis
c2a964932c
Add custom-freezer macro for easier Freezable extension
2013-08-02 15:04:11 +07:00
Peter Taoussanis
99091b0a32
Add support for custom thaw readers
2013-07-29 16:43:29 +07:00
Peter Taoussanis
8e4cc072e3
Move Reader fallback out of Freezable protocol to make protocol extensible
2013-07-29 15:58:51 +07:00
Peter Taoussanis
69611657c7
Expose low-level fns: freeze-to-stream!, thaw-from-stream!
2013-07-29 15:57:36 +07:00
Peter Taoussanis
a8b1686a54
Make head-meta ^:const
2013-07-25 15:41:13 +07:00
Peter Taoussanis
93ef118e80
Housekeeping
2013-07-06 15:55:59 +07:00