rust-lang-nursery / lazy-static.rs

A small macro for defining lazy evaluated static variables in Rust.
Apache License 2.0
1.9k stars 108 forks source link

Upgraded spin to 0.7 for better performance #182

Closed zesterer closed 3 years ago

zesterer commented 3 years ago

spin 0.7 includes performance improvements such as less strict ordering requirements and better spinning. All in all, this should reduce power consumption and improve performance, particularly on platforms like ARM.

zesterer commented 3 years ago

Closes #181

zesterer commented 3 years ago

@KodrAus Any chance of this getting merged? Also, what do you think about using 0.7 instead of 0.7.0 to avoid compiling extra dependencies unnecessarily if spin already exists in the dependency tree? I'm very careful to avoid breaking changes.

KodrAus commented 3 years ago

Sorry for the delay here @zesterer! :bow: This looks good to me.

zesterer commented 3 years ago

As a point of interest: 0.9 has since been released!

r3dlight commented 3 years ago

Also adding this here : https://deps.rs/crate/lazy_static/1.4.0 https://rustsec.org/advisories/RUSTSEC-2019-0013.html