Remove `lazy_static!` for `ATOMIC_COUNTER` by nvzqz · Pull Request #286 · KittyCAD/machine-api
Navigation Menu
{{ message }}
KittyCAD / machine-api Public
- Notifications You must be signed in to change notification settings
- Fork 4
Open
Remove lazy_static! for ATOMIC_COUNTER#286
Remove lazy_static! for ATOMIC_COUNTER#286
Conversation
Copy link Copy Markdown
nvzqz
commented
Aug 26, 2025
nvzqz
commented
AtomicU32::new is a const fn, so we don't need lazy initialization. This reduces the number of operations needed to increment the counter.
`AtomicU32::new` is a `const fn`, so we don't need lazy initialization. This reduces the number of operations needed to increment the counter.
iterion approved these changes Aug 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment