Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
faae1fbc
Commit
faae1fbc
authored
Mar 04, 2026
by
Luke Sandberg
Committed by
Luke Sandberg
Mar 11, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
don't attempt to compress key blocks for small keys
parent
c40ff2e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
static_sorted_file_builder.rs
...rates/turbo-persistence/src/static_sorted_file_builder.rs
+1
-1
No files found.
turbopack/crates/turbo-persistence/src/static_sorted_file_builder.rs
View file @
faae1fbc
...
@@ -58,7 +58,7 @@ const BLOCK_INDEX_CAPACITY_BUFFER: usize = 16;
...
@@ -58,7 +58,7 @@ const BLOCK_INDEX_CAPACITY_BUFFER: usize = 16;
/// Keys are sorted by hash, so we should not expect correlation in the data between nearby keys in
/// Keys are sorted by hash, so we should not expect correlation in the data between nearby keys in
/// a block. For small keys (below this threshold), compression is unlikely to be able to exploit
/// a block. For small keys (below this threshold), compression is unlikely to be able to exploit
/// patterns and only wastes CPU time. We skip the compression attempt entirely in this case.
/// patterns and only wastes CPU time. We skip the compression attempt entirely in this case.
const
MIN_KEY_SIZE_FOR_COMPRESSION
:
usize
=
8
;
const
MIN_KEY_SIZE_FOR_COMPRESSION
:
usize
=
16
;
/// Maximum key length that can use fixed-size key block layout.
/// Maximum key length that can use fixed-size key block layout.
///
///
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment