Skip to content

Commit 60d8914

Browse files
committed
Convert MD5 bench string from const to static
This avoids repeating it for each multiversion implementation. Similar to d117eb8, but far less drastic improvement.
1 parent e425731 commit 60d8914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/utils/src/md5/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ multiversion! {
270270
}
271271
}
272272

273-
const BENCH_STRING: [[u8; 32]; 128] = {
273+
static BENCH_STRING: [[u8; 32]; 128] = {
274274
let mut out = [*b"abcdefghijklmnopqrstuvwxyz012345"; 128];
275275
let mut i = 0;
276276

0 commit comments

Comments
 (0)