mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Motivation: I left an assertion that String.UTF8View's underestimatedCount is equal to the actual count of UTF-8 code units. It's good to see that it never failed so far so we can expect it to be really good which is important for performance. However, there's no problem if it does actually underestimate maybe for some special kind of Strings. So the assertion really isn't meaningful. Modifications: Remove the assertion. Result: Most likely nothing but we will not crash on something that we shouldn't crash on.