Hacker News new | ask | show | jobs
by holmium 1892 days ago
In addition to what the others have said, Rust's `String` is three pointer sized words: `(ptr, len, capacity)`. So, a `String` has 50% of the overhead of a `&str`.