-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
chore: move lazy_static
to once_cell
, and some clippy fix
#380
base: master
Are you sure you want to change the base?
Conversation
Hello @attila-lin, could you please provide some motivation why changes from Also, I assume you ran Clippy with the Nightly toolchain? |
maintenance = { status = "passively-maintained" } this crate is passively-maintained. The
Yes. |
The fact that it is passively maintained is not an issue to me, but the second argument looks ok. But I assume we would go for
Fair enough |
Benchmarks show a large decreasing in performances, which is surprising:
I just restarted the benchmarks, to see if that stays the same. |
interesting! |
This is very surprising... Do you observe the same benchmark changes locally? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea why any of this would affect benchmarks.
use std::convert::TryFrom; | ||
|
||
use lazy_static::lazy_static; | ||
use once_cell::sync::Lazy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsync::Lazy
is probably a better choice here.
let me try unsync version! |
Any update @attila-lin? |
No description provided.