Skip to content

Commit dba3f21

Browse files
authored
Bump interpolation search method for asset manifest reading to 1% (#8115)
1 parent ddaef2b commit dba3f21

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/kind-spiders-hunt.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+
chore: Bump interpolation search method for asset manifest reading to 1%

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

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

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

0 commit comments

Comments
 (0)