Skip to content

[feat] Consider using msgpack5 for compression #386

Open
@robertsLando

Description

@robertsLando

https://github.com/mcollina/msgpack5

Option: compressMode: 'msgpack5' default to false

Then a compressed line in jsonl file will look like:

{"k":"1668612831392", "v": "0xaaaaaaa"}

Where aaaaaaa is the encoded object output from msgpack5 ecncode function.

To keep back compatibility we should allow to read uncompressed existing jsonl dbs, this means that when reading the db file and compression is enabled, when v is a string we should decode it with the compression choosed, otherwise read v as before

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions