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

lazy_static replaced by std::sync::OnceLock #30

Merged
merged 8 commits into from
Sep 7, 2024
Merged

lazy_static replaced by std::sync::OnceLock #30

merged 8 commits into from
Sep 7, 2024

Conversation

ThisAccountHasBeenSuspended
Copy link
Contributor

@ThisAccountHasBeenSuspended ThisAccountHasBeenSuspended commented Aug 29, 2024

lazy_static is no longer needed since Rust 1.70.0

Edit

Changes have been made HERE to reduce memory usage and improve performance.

  • String was changed to Box<str> to reduce memory usage.
  • The helper functions in constants.rs now return a reference instead of a copy which reduces memory usage and improves performance.

1. `String` was changed to `Box<str>` to reduce memory usage.
2. The helper functions in `constants.rs` now return a reference instead of a copy which reduces memory usage and improves performance
@igorlira
Copy link
Owner

This is great, but there's some conflicts with some other PRs I just merged, can you update this branch?

@ThisAccountHasBeenSuspended
Copy link
Contributor Author

💯

@igorlira igorlira merged commit 0b64a24 into igorlira:main Sep 7, 2024
1 check passed
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