Improve HPACKEncoding performance by ~2x (#541)

This commit is contained in:
Fabian Fett authored and GitHub committed 2026-03-10 17:06:04 +00:00
1 parent 46ffc740ce
commit 0b600fc4ff
1 file changed
+4 -1
+4 -1
View File
@@ -773,6 +773,9 @@ extension String.UTF8View {
extension String {
@inlinable
internal func isEqualCaseInsensitiveASCIIBytes(to: String) -> Bool {
self.utf8.compareCaseInsensitiveASCIIBytes(to: to.utf8)
guard self.utf8.count == to.utf8.count else {
return false
}
return self.utf8.compareCaseInsensitiveASCIIBytes(to: to.utf8)
}
}