question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alternative compression methods

See original GitHub issue

Is your feature request related to a problem? Please describe.

I’m using Keyv to wrap connection with Redis and I would like to compress the content cached in Redis. This caching process is time-sensitive, so it should favour speed over compression rate. Thus why I’m atm using separate wrapper using snappy as the compression algorithm. I did performance tests and it turned out that Brotli in BROTLI_MIN_QUALITY mode is almost 2x slower than snappy!

So, the real problem for me is that Brotli is the built-in compression mechanism that cannot be easily changed for anything else.

Describe the solution you’d like

I would like to have some options if it goes to choosing the compression method that can be used with Keyv.

Describe alternatives you’ve considered

Atm I’m using custom kdybicz/apollo-server-snappy-cache-wrapper wrapped for Keyv.

Additional context

Scotty, We Need More Power!

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
jaredwraycommented, Aug 28, 2022

@alfaproject and @kdybicz we have merged in the changes and will be planning a release this week. Also, will add in support for snappy as a compression provider and most likely gzip.

1reaction
jaredwraycommented, Sep 2, 2022

Closing this issue as we have now published the compression changes. https://github.com/jaredwray/keyv/releases/tag/2022-09-02

Read more comments on GitHub >

github_iconTop Results From Across the Web

Evaluation of an alternative chest compression technique - NCBI
In theory, two approaches with this alternative technique are possible: left hand chest compression with the right hand gripping the left ...
Read more >
JSON Compression: Alternative Binary Formats and ...
JSON Compression: Alternative Binary Formats and Compression Methods ; Binary Format · Compressed Size (bytes) · BSON ; Binary Format · Compressed ......
Read more >
Is there any alternative to standard chest compression techn...
Is there any alternative to standard chest compression techniques in infants? A randomized manikin trial of the new “2-thumb-fist” option.
Read more >
Alternative compression techniques (BLS): Systematic Review
Alternative compression techniques (BLS): Systematic Review · Conflict of Interest Declaration · Conflict of Interest Declaration · CoSTR Citation.
Read more >
Crunch Time: 10 Best Compression Algorithms - DZone
When compressing data, you can use either lossy or lossless methods. Lossy methods permanently erase data while lossless preserve all original ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found