Skip to content

Commit 2547c0f

Browse files
authored
Rollout interpolation search for asset manifests (1/20,000) (#8084)
1 parent d83dd19 commit 2547c0f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fifty-hairs-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/workers-shared": minor
3+
---
4+
5+
Rollout interpolation search method for asset manifests (1 / 20,000 requests)

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

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

220-
const INTERPOLATION_EXPERIMENT_SAMPLE_RATE = 0;
220+
const INTERPOLATION_EXPERIMENT_SAMPLE_RATE = 1 / 20_000; // 0.00005 = 0.005%
221221
let searchMethod: "binary" | "interpolation" = "binary";
222222
if (Math.random() < INTERPOLATION_EXPERIMENT_SAMPLE_RATE) {
223223
searchMethod = "interpolation";

0 commit comments

Comments
 (0)