3 ms·
Yes, I don't think you can do better if forced to use &str. The point of using Cow is indeed to only copy when necessary like you assumed. You could have zero-
by whyever 9y ago
Yes, I don't think you can do better if forced to use &str. The point of using Cow is indeed to only copy when necessary like you assumed.
You could have zero-copy roundtrips if you used escapes in the deserialized strings as well.