Skip to content

Commit d4d5987

Browse files
Bump interpolation search for asset manifest reads to 50% (#8127)
* Bump interpolation search for asset manifest reads to 50% * Update rotten-eyes-boil.md Co-authored-by: Somhairle MacLeòid <[email protected]> --------- Co-authored-by: Somhairle MacLeòid <[email protected]>
1 parent 59eda4a commit d4d5987

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/rotten-eyes-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/workers-shared": patch
3+
---
4+
5+
chore: Bump interpoplation search method for asset manifest reads to 50%

packages/workers-shared/asset-worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export default class extends WorkerEntrypoint<Env> {
222222
const analytics = new ExperimentAnalytics(this.env.EXPERIMENT_ANALYTICS);
223223
const performance = new PerformanceTimer(this.env.UNSAFE_PERFORMANCE);
224224

225-
const INTERPOLATION_EXPERIMENT_SAMPLE_RATE = 1 / 100; // 0.01 = 1%
225+
const INTERPOLATION_EXPERIMENT_SAMPLE_RATE = 0.5;
226226
let searchMethod: "binary" | "interpolation" = "binary";
227227
if (Math.random() < INTERPOLATION_EXPERIMENT_SAMPLE_RATE) {
228228
searchMethod = "interpolation";

0 commit comments

Comments
 (0)