Remove `lazy_static!` for `ATOMIC_COUNTER` by nvzqz · Pull Request #286 · KittyCAD/machine-api

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@nvzqz

Copy link Copy Markdown

@nvzqz nvzqz commented

Aug 26, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@iterion iterion iterion approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@nvzqz @iterion