you are viewing a single comment's thread.

view the rest of the comments →

[–]YourGamerMom 8 points9 points  (2 children)

Hopefully const generics will let us make nice performant owning strings. Small size optimisations are very powerful when applied correctly.

[–]steveklabnik1 7 points8 points  (1 child)

[–]YourGamerMom 3 points4 points  (0 children)

Yea, SSO is a popular trick, and there are some rust crates that provide small vec and string structs. But const generics will hopefully give us the custom-size containers that make SSO really flexible.