Skip to content

Commit 9c58da2

Browse files
committed
prefetch more ahead
1 parent 4a5eaab commit 9c58da2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aarch64.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const CHUNK: usize = 64;
99
/// Distance (in bytes) to prefetch ahead. Must be a multiple of 8 for PRFM.
1010
/// Keeping ~4 iterations (4 × CHUNK = 256 B) ahead strikes a good balance
1111
/// between hiding memory latency and not evicting useful cache lines.
12-
const PREFETCH_DISTANCE: usize = CHUNK * 4;
12+
const PREFETCH_DISTANCE: usize = CHUNK * 8;
1313

1414
pub fn encode_str<S: AsRef<str>>(input: S) -> String {
1515
let s = input.as_ref();

0 commit comments

Comments
 (0)