Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTTP/2: Optimize check for CONNECT method in header creation
`String.upcase/1` by default iterates over the graphemes in the input string which can be relatively slow. Since we're only interested in case-insensitive equality, we can write a small custom equality checking function that can avoid creating new terms and can return early. Using a charlist is slightly faster than passing `"CONNECT"` as a binary.
- Loading branch information