Skip to main content

hexastore_readahead_env_bytes

Function hexastore_readahead_env_bytes 

Source
pub fn hexastore_readahead_env_bytes() -> Option<usize>
Expand description

Resolved hexastore iterator readahead from the temporary A/B knob TEST_HEXASTORE_READAHEAD_SIZE (KiB), or None when unset/invalid/zero.

Hexastore stores keep RocksDbTuning::iterator_readahead_bytes at 0 (engine auto-readahead: 8 KiB ramping to max_auto_readahead_size, and it only engages after 2 sequential misses). This knob forces an explicit window instead — which engages from the very first IO, runs the fixed-size two-buffer async prefetch when WARATAH_SCAN_ASYNC_IO is on, and is trimmed against the iterate upper bound. Applies only at the hexastore open path (crate::rocksdb::RocksDbStorage::open_with_hooks); the registry’s readahead (WARATAH_ITERATOR_READAHEAD_SIZE) is unaffected. Temporary: remove with the readahead experiment.