Parallel part1
This commit is contained in:
parent
e364d411c8
commit
1ae8f8caf9
@ -145,7 +145,7 @@ fn part1(state: &mut State) -> usize {
|
||||
while move_guard(state) == Running {}
|
||||
state
|
||||
.map
|
||||
.iter()
|
||||
.par_iter()
|
||||
.map(|l| l.iter().filter(|c| matches!(c, Visited(_))).count())
|
||||
.sum()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user