Update ValueStringBuilder.EnsureCapacity.cs#235
Conversation
Changed Length >= newCapacity to Capacity >= newCapacity: checking with current capacity of the buffer.
|
|
Oh that is a good one and much appreciated. @Joy-less I think that change Therefore the PR is justified. Given that we might resize too often at the moment. Something under the UNRELEASED section: ## UNRELEASED
### CHANGED
- Optimized when the internal buffer should grow. Fixed by [@Aniobodo](https://github.com/Aniobodo) |
|
Sorry yes this is correct, my bad if I introduced this mistake. @linkdotnet |
Easy - no need to apologize. I also didn't spot that. Just wanted to make sure that it wasn't intentional. Let's get that in - I will add the changelog entry. |



Changed Length >= newCapacity to Capacity >= newCapacity: checking with current capacity of the buffer.