Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: replace static with const for global constants #23

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

Integral-Tech
Copy link
Contributor

  • Like constexpr in C++ / C23, const variables in Rust are evaluated during compilation, which is more efficient than static.

@xz-dev xz-dev merged commit 177673f into DUpdateSystem:master Oct 28, 2024
1 check passed
@Integral-Tech Integral-Tech deleted the replace-static-const branch October 28, 2024 03:31
xz-dev pushed a commit that referenced this pull request Dec 8, 2024
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