Skip to content

Commit cf05e91

Browse files
committed
Smaller data blocks
1 parent 91bd74c commit cf05e91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/day25.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ static LUT: [u32; 4] = [0, 0xFF, 0xFF_FF, 0xFF_FF_FF];
2121
unsafe fn part1_inner(s: &[u8]) -> u64 {
2222
let mut sum = 0;
2323

24-
static mut KEYS: [u64; 512] = unsafe { std::mem::transmute([0u8; 512 * 8]) };
25-
static mut HOLES: [u64; 512] = unsafe { std::mem::transmute([0u8; 512 * 8]) };
24+
static mut KEYS: [u64; 256] = unsafe { std::mem::transmute([0u8; 256 * 8]) };
25+
static mut HOLES: [u64; 256] = unsafe { std::mem::transmute([0u8; 256 * 8]) };
2626

2727
let keys = &mut *(&raw mut KEYS);
2828
let holes = &mut *(&raw mut HOLES);

0 commit comments

Comments
 (0)