File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,9 @@ const QUADS_NEEDED: usize = 20usize.div_ceil(QUAD_SIZE);
155155fn inner_part2 ( s : & [ u8 ] ) -> u32 {
156156 let start = memchr:: memchr ( b'S' , s) . unwrap ( ) ;
157157
158- let mut lines = [ const { heapless:: Vec :: < Line , 2048 > :: new ( ) } ; 4 ] ;
159- let mut quads = [ const {
160- [ const { heapless:: Vec :: < usize , { QUAD_SIZE * 2 } > :: new ( ) } ; QUADS_SIZE * QUADS_SIZE ]
161- } ; 4 ] ;
158+ let mut lines = [ const { heapless:: Vec :: < Line , 1024 > :: new ( ) } ; 4 ] ;
159+ let mut quads =
160+ [ const { [ const { heapless:: Vec :: < usize , 32 > :: new ( ) } ; QUADS_SIZE * QUADS_SIZE ] } ; 4 ] ;
162161
163162 let mut i = start;
164163 let mut d = if s[ i - 1 ] == b'.' {
@@ -367,6 +366,8 @@ fn inner_part2(s: &[u8]) -> u32 {
367366 }
368367 }
369368 }
369+ // dbg!(quads.iter().flat_map(|q| q.iter().map(|q| q.len())).max());
370+ // dbg!(lines.iter().map(|l| l.len()).max());
370371 // dbg!(&quads);
371372 // dbg!(&lines);
372373
You can’t perform that action at this time.
0 commit comments