taoensso / nippy

The fastest serialization library for Clojure
https://www.taoensso.com/nippy
Eclipse Public License 1.0
1.04k stars 60 forks source link

String array deserialization #178

Open KGOH opened 3 months ago

KGOH commented 3 months ago

Please add [Ljava.lang.String; class to the deserialization list

Array of strings serializes more compact

(count (nippy/fast-freeze (into-array String (repeat 1000 "hello")))) #_5071 (count (nippy/fast-freeze (object-array (repeat 1000 "hello")))) #_7005

ptaoussanis commented 3 months ago

@KGOH Hi there! Sure, will add this (and maybe long arrays) in the next release 👍

In the meantime, please note that you might want to avoid fast-freeze if you're concerned about compactness since it skips compression.