Skip to content

Compressor: return Cow<[u8]> for zero-copy passthrough #220

@singulared

Description

@singulared

Change `compress(&[u8]) -> Vec` to `-> Cow<[u8]>` so passthrough compressor avoids allocation.

Breaking: trait signature change.

Metadata

Metadata

Assignees

Labels

backendCache backend related issuesperformancePerformance optimization and benchmarking

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions