Efficient Arc<ZST>

· Users Rust Lang · Nov. 7, 2026, 10:33 p.m.
Summary
The blog post discusses the inefficiencies of using `Arc<T>` for zero-sized types (ZSTs) in Rust applications, specifically highlighting that `Arc<T>::new` allocates heap memory unnecessarily. The author is seeking information on common crates that could optimize the construction of `Arc` for ZSTs to avoid these allocations.