pub struct Day14 { /* private fields */ }
Expand description
2018 Day 14: Searching for a pattern in an infinite recipe list.
This implementation is based on /u/askalski’s post “Breaking the 1 billion recipes per second barrier” and accompanying gist, adapted to safe Rust without intrinsics or explicit SIMD while achieving similar performance.
The key optimization is that all the elves converge on the same subset of recipes after the first 23 recipes, allowing them to be processed in bulk using SIMD.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Day14
impl RefUnwindSafe for Day14
impl Send for Day14
impl Sync for Day14
impl Unpin for Day14
impl UnwindSafe for Day14
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more