Skip to content

Remove lazy_static! for ATOMIC_COUNTER#286

Open
nvzqz wants to merge 1 commit intomainfrom
nikolai/improve-sequence-id
Open

Remove lazy_static! for ATOMIC_COUNTER#286
nvzqz wants to merge 1 commit intomainfrom
nikolai/improve-sequence-id

Conversation

@nvzqz
Copy link

@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants