nippy/test/taoensso
Peter Taoussanis 0a9d67084b [new] [Storage efficiency] PoC: separate signed long types
Before:
  Longs in [  -128,   127] use 1 byte
  Longs in [-32768, 32767] use 2 bytes
  etc.

After:
  Longs in [  -255,   255] use 1 byte
  Longs in [-65535, 65535] use 2 bytes
  etc.

I.e. doubles the range of longs that can be stored by 1, 2, and 4 bytes.

This changes saves:
  - 1 byte  per long in [  128,   255], or [  -129,   -255]
  - 2 bytes per long in [32768, 65535], or [-32769, -65535]
  - 4 bytes per long ...

Is this advantage worth the extra complexity? Probably yes, given how
common longs (and colls of longs) are in Clojure.
2023-08-02 13:50:40 +02:00
..
nippy/tests [#154] Revert "[mod] [DEPRECATED] Remove ability to freeze new data using experimental cache feature" 2023-08-02 13:43:59 +02:00
nippy_tests.clj [new] [Storage efficiency] PoC: separate signed long types 2023-08-02 13:50:40 +02:00