facebook / facebook/zstd

[umbrella task] Track and improve code size

Open
#2,867 1 comment 3 reactions 0 assignees View on GitHub
long-term
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

Zstd has been getting larger over the years, as we've added features and improved performance. We should take a comprehensive look at code size, and try to optimize our code size while retaining performance.

1. Explicitly track our code size in our tests, and monitor between releases.
2. Look at the largest code size files and try to find wins.
a. `zstd_opt.c` is a prime target: Issue #2866.
b. `zstd_lazy.c` was optimized in PR #2828, but there is still more that can be won (as mentioned in the TODO).
3. Enable modular builds. E.g. allow cutting out dictionary support, or cutting out high compression levels.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.