This PR adds support for generating smartstring::SmartString instead of normal Strings. This can avoid a heap allocation when the ID is smaller than 23 ASCII characters. (which is the case by default)
An initial capacity isn't supported by SmartString so I had to replace it with String::new when the feature is enabled.
This PR adds support for generating smartstring::SmartString instead of normal Strings. This can avoid a heap allocation when the ID is smaller than 23 ASCII characters. (which is the case by default) An initial capacity isn't supported by SmartString so I had to replace it with
String::new
when the feature is enabled.More info: https://docs.rs/smartstring