Consider length for compression?

Created on 1 February 2025, 2 months ago

Problem/Motivation

The redis cache backend has built-in cache compression as well.

Out of a gut feeling, I implemented it with a length check that also serves as a feature flag. Only strings above a certain length are compressed, the documented example is 100 characters.

I haven't really done any profiling on it and there aren't many caches that are actually shorter than 100 characters but a few select ones are, such as last write timestamps of ChainedFast (redis actually optimizes those now, so they don't run through a regular cache get).

Steps to reproduce

Proposed resolution

Consider a length setting, do some profiling?

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇭Switzerland berdir Switzerland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024