问题
I want to use a thread local variable of type Option<usize>
in a Rust library. How many bytes will this use per thread for crates that have a dependency on my library? I'm interested in Rust 1.39 and targeting Linux for three processors: amd64, x86 and arm32.
来源:https://stackoverflow.com/questions/58942482/how-many-bytes-will-a-thread-local-variable-in-rust-use