freeze {:skip-header? true} - saves 4 bytes per payload + slightly faster. This
kills support for data versioning and dynamic compression selection.
freeze {:compressor nil} - should significantly improve freeze performance (~20%) at
an insignificant increase to payload size (~5%). A good trade assuming job data doesn't
grow into the megabyte range.
thaw {:compressor nil, :encryptor nil} - necessary because of [1]
thaw {:v1-compatibility? false} - good hygiene if you're not thawing any legacy data
cc @ptaoussanis (I updated a second location where freeze & thaw were used)
cc @bcotton
Changes:
freeze
/thaw
opts for performanceSpecifically:
freeze {:skip-header? true}
- saves 4 bytes per payload + slightly faster. This kills support for data versioning and dynamic compression selection.freeze {:compressor nil}
- should significantly improve freeze performance (~20%) at an insignificant increase to payload size (~5%). A good trade assuming job data doesn't grow into the megabyte range.thaw {:compressor nil, :encryptor nil}
- necessary because of [1]thaw {:v1-compatibility? false}
- good hygiene if you're not thawing any legacy data