[nop] Misc housekeeping

This commit is contained in:
Peter Taoussanis 2023-08-16 11:56:19 +02:00
parent ed95701c79
commit d5a836326a
2 changed files with 5 additions and 6 deletions

View file

@ -349,7 +349,7 @@
;; See also `nippy.tools` ns for further dynamic config support ;; See also `nippy.tools` ns for further dynamic config support
;; For back compatibility (nb Timbre's Carmine appender) ;; For back compatibility (nb Timbre's Carmine appender)
(enc/defonce ^:dynamic ^:deprecated *final-freeze-fallback* "DEPRECATED: prefer `*freeze-fallback`." nil) (enc/defonce ^:dynamic ^:no-doc ^:deprecated *final-freeze-fallback* "DEPRECATED: prefer `*freeze-fallback`." nil)
(enc/defonce ^:dynamic *freeze-fallback* "(fn [data-output x])->freeze, nil => default" nil) (enc/defonce ^:dynamic *freeze-fallback* "(fn [data-output x])->freeze, nil => default" nil)
(enc/defonce ^:dynamic *custom-readers* "{<hash-or-byte-id> (fn [data-input])->read}" nil) (enc/defonce ^:dynamic *custom-readers* "{<hash-or-byte-id> (fn [data-input])->read}" nil)
@ -385,7 +385,7 @@
Note that while this is a very powerful feature, correctly writing Note that while this is a very powerful feature, correctly writing
and debugging transducers and reducing fns can be tricky. and debugging transducers and reducing fns can be tricky.
To help, if Nippy encounters an errors while applying your xform, it To help, if Nippy encounters an error while applying your xform, it
will throw a detailed `ExceptionInfo` with message will throw a detailed `ExceptionInfo` with message
\"Error thrown via `*thaw-xform*`\" to help you debug." \"Error thrown via `*thaw-xform*`\" to help you debug."
@ -559,7 +559,7 @@
(enc/defonce ^{:dynamic true :doc doc} *freeze-serializable-allowlist* (init-allowlist :freeze default-freeze-serializable-allowlist false)) (enc/defonce ^{:dynamic true :doc doc} *freeze-serializable-allowlist* (init-allowlist :freeze default-freeze-serializable-allowlist false))
(enc/defonce ^{:dynamic true :doc doc} *thaw-serializable-allowlist* (init-allowlist :thaw default-thaw-serializable-allowlist true))) (enc/defonce ^{:dynamic true :doc doc} *thaw-serializable-allowlist* (init-allowlist :thaw default-thaw-serializable-allowlist true)))
(enc/defonce ^:dynamic ^:deprecated *serializable-whitelist* (enc/defonce ^:dynamic ^:no-doc ^:deprecated *serializable-whitelist*
;; Mostly retained for https://github.com/juxt/crux/releases/tag/20.09-1.11.0 ;; Mostly retained for https://github.com/juxt/crux/releases/tag/20.09-1.11.0
"DEPRECATED, now called `*thaw-serializable-allowlist*`" nil) "DEPRECATED, now called `*thaw-serializable-allowlist*`" nil)

View file

@ -67,7 +67,6 @@
warmup 25e3}}] warmup 25e3}}]
(println "\nStarting benchmarks") (println "\nStarting benchmarks")
(println "---")
(let [results_ (atom {})] (let [results_ (atom {})]
(when (or all? reader?) (when (or all? reader?)
@ -105,7 +104,7 @@
(println "- Benchmarks complete! (Time for cake?)") (println "- Benchmarks complete! (Time for cake?)")
(let [results @results_] (let [results @results_]
(println "\n") (println "\nBenchmark results:")
(doseq [[k v] results] (println k " " v)) (doseq [[k v] results] (println k " " v))
(do results)))) (do results))))