fjall 3.1.4

Log-structured, embeddable key-value storage engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (c) 2024-present, fjall-rs
// This source code is licensed under both the Apache 2.0 and MIT License
// (found in the LICENSE-* files in the repository)

const STEP_SIZE: usize = 10_000;
const THRESHOLD: usize = 20;

pub fn perform_write_stall(l0_runs: usize) {
    if let THRESHOLD..30 = l0_runs {
        let d = l0_runs - THRESHOLD;

        for _ in 0..(d * STEP_SIZE) {
            std::hint::black_box(());
        }
    }
}