Currently, 2.1.x has many methods that take references to tiny types. This is inefficient, as primitive types that are Copy (or small types that are under a few usizes wide) can always be stored on registers. Forcing it to be a reference causes a performance hit, but more importantly, makes the API annoying!
You'll notice the 139 (!) violations of this lint. Please consider fixing them before any 3.x release of the crate. This will significantly improve the API but also speed things up in general.
Currently, 2.1.x has many methods that take references to tiny types. This is inefficient, as primitive types that are
Copy
(or small types that are under a fewusize
s wide) can always be stored on registers. Forcing it to be a reference causes a performance hit, but more importantly, makes the API annoying!I suggest enabling the Clippy lint
clippy::trivially_copy_pass_by_ref
in your Cargo.toml:You'll notice the 139 (!) violations of this lint. Please consider fixing them before any 3.x release of the crate. This will significantly improve the API but also speed things up in general.