Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify
String
’s Extend<&str>
implementation
Reserving lower_bound bytes was just silly. It’d be perfectly reasonable to have empty strings in the iterator, which could cause superfluous reallocation of the string, or to have more than one byte per string, which could cause additional reallocation (in practice it’ll balance out). The added complexity of this logic is simply pointless, adding a little bloat with no demonstrable advantage and slight disadvantage.
- Loading branch information