Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zozbot234
12 months ago
|
parent
|
context
|
favorite
| on:
Identifying Rust's collect:<Vec<_>>() memory leak ...
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: