Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Now, to be clear, I've only done Tier 1 kind of myself (https://github.com/abnew123/aoc2022/tree/main/src/aoc2022 has the solutions and timings, the "kind of" is since I've only solve 23 days). But I'm sure at least Tier 3 has been done by someone on the sub, and maybe Tier 4? Would be really cool seeing some millisecond level solutions on some of the longer days (and possibly a useful learning to speed up code in future years).
I've got a copy of all of my solutions so far on my github. Currently all problems complete in ~300ms combined on my system. I'm most proud of my solutions to day 24 (both parts run in ~300us) and day 16 (both parts run in ~30ms). The longest running solutions of mine are day 23, 19, and 20. There are further optimizations for day 19 that I didn't include even though they work on the provided input. I've chosen not to include them as they aren't generally true (such as always build a geode robot whenever you can).
My solutions (github) run in a bit more than 50ms on my pc. The slowest days are 20 and 23, with 23 taking up ~30ms, 20 taking up ~10ms and all the other combined taking up ~10ms.
Related posts
- 3 years of fulltime Rust game development, and why we're leaving Rust behind
- Rust Keyword Extraction: Creating the YAKE! algorithm from scratch
- Apnic: Cgnat is harming internet innovation (2022)
- Fyrox Game Engine – a Rust game engine with a real editor and scripting system
- Voronoi, Manhattan, random