tokio-rs / bytes

Utilities for working with bytes
MIT License
1.91k stars 286 forks source link

Calculate original capacity only if necessary #666

Closed braddunbar closed 9 months ago

braddunbar commented 9 months ago

We don't need the original capacity if the shared data is unique, so let's not calculate it until after that check.

braddunbar commented 9 months ago

Test failures appear to be transient, but I don't have permission to re-run them. 🤷