Closed lulf closed 1 year ago
LGTM. I got two questions: a) how much does it improve the performance b) what's the reason for using Arc<str> over Cow<str>?
Arc<str>
Cow<str>
a) About 15-20% , no clone() b) Since we never modify the content, i.e. they're all immutable strings, I think Arc is more in line with usage. I also think Cow might require Arc<Cow> unless it does some trickery to support Send + Sync .
LGTM. I got two questions: a) how much does it improve the performance b) what's the reason for using
Arc<str>
overCow<str>
?