Skip to content

Merge crunch optimization#369

Open
terrelln wants to merge 2 commits into
facebook:devfrom
terrelln:export-D92425118
Open

Merge crunch optimization#369
terrelln wants to merge 2 commits into
facebook:devfrom
terrelln:export-D92425118

Conversation

@terrelln

@terrelln terrelln commented Feb 5, 2026

Copy link
Copy Markdown
Contributor

Summary:
Port the optimizations from Crunch in D92286807 back into the codebase.

I ported the Crunch code exactly as-is, and then merged the optimizations back into the codebase as-needed to get the same performance. The only optimization that mattered was loading all the control bytes and LUT entries up front.

Differential Revision: D92425118

Summary: Fix a problem where we were emitting matches longer than 2^16-1, and then storing them in a `uint16_t`.

Differential Revision: D92425119
Summary:
Port the optimizations from Crunch in D92286807 back into the codebase.

I ported the Crunch code exactly as-is, and then merged the optimizations back into the codebase as-needed to get the same performance. The only optimization that mattered was loading all the control bytes and LUT entries up front.

Differential Revision: D92425118
@meta-cla meta-cla Bot added the cla signed label Feb 5, 2026
@meta-codesync

meta-codesync Bot commented Feb 5, 2026

Copy link
Copy Markdown

@terrelln has exported this pull request. If you are a Meta employee, you can view the originating Diff in D92425118.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment