News for hackers. Stuff that matters.
Re:Why Polars rewrote its Arrow string data type by kibwen on Wednesday August 07, 2024 @10:17AM (#41181715)
Rust APIs use string slices (&str) extensively. With its current design, converting from a String to a &str is a no-op; if String instead did small string optimization, converting to &str wouldn't be free. Furthermore, thanks to the borrow checker, Rust code tends to avoid copying strings around, so the benefit of SSO is reduced. C++ does more string copying and didn't have a standard string_view for a long time, so considering the tradeoffs both languages made reasonable decisions.

There are no comments on this comment yet.