avatar
Owen O’Malley @owenomalley.bsky.social

I did it both ways. The regex approach was a lot less code (36 versus 103 loc), but the manual parser ran much faster. (2.3 ms versus 0.078 ms). github.com/omalley/adve...

dec 3, 2024, 10:00 pm • 1 0

Replies

avatar
Jamwise @jamwi.se

Thanks for sharing! I'm new to Rust, but here was my regex take. github.com/jamwise/aoc_...

dec 3, 2024, 10:11 pm • 0 0 • view
avatar
Owen O’Malley @owenomalley.bsky.social

My regex version is in the git history. You can see it here: github.com/omalley/adve...

dec 3, 2024, 10:30 pm • 1 0 • view