Re:Identifying Rust's collect:<Vec<_>>() memory leak footgun
by zozbot234 on Thursday January 18, 2024 @01:40PM
(#39045785)
Arc<str> is an atomically ref-counted string, also quite useful in async or multi-threaded code where (unlike w/ Box) you sometimes can't know in advance which task will drop the last reference to some data.
[ Parent
| on HN ]
There are no comments on this comment yet.