mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-22 04:30:43 +00:00
Improve HPACKEncoding performance by ~2x (#541)
This commit is contained in:
1 parent
46ffc740ce
commit
0b600fc4ff
1 file changed
+4
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user