About ~12% of time is spent in doing conversions from &str to SmartString, which may require a reallocation anyway.
- https://github.com/bodil/smartstring/blob/e407ca23c747257a812d2d2e70bf336412718c3a/src/lib.rs#L646
- (or if inline): https://github.com/bodil/smartstring/blob/e407ca23c747257a812d2d2e70bf336412718c3a/src/inline.rs#L83
Maybe we can just store the indices instead of converting to and from SmartStrings? We only need a Borrowed anyway at self.get() time. No idea if it would actually be faster.
About ~12% of time is spent in doing conversions from &str to SmartString, which may require a reallocation anyway.
Maybe we can just store the indices instead of converting to and from SmartStrings? We only need a Borrowed anyway at self.get() time. No idea if it would actually be faster.