Crates.io | pessimize |
lib.rs | pessimize |
version | 2.0.0 |
source | src |
created_at | 2024-01-05 10:41:46.449346 |
updated_at | 2024-06-14 05:50:56.286563 |
description | More efficient Rust compiler optimization barriers |
homepage | |
repository | |
max_upload_size | |
id | 1089573 |
size | 205,746 |
Microbenchmarking is a subtle exercise to begin with, and the lack of
lightweight optimization barriers on stable Rust makes it even more difficult.
This crate aims to improve upon the statu quo by providing an alternative to
std::hint::black_box
which is...
In exchange, the price to pay is...
std
type with safety invariants to a simpler data structure with less safety
invariants, pass the members of this data structure through an optimization
barrier that does nothing, then convert it back to the original type).