How many bytes will a thread local variable in Rust use?

强颜欢笑 提交于 2019-12-24 07:16:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!