Commit 4777295
committed
perf: remove redundant .lower() calls in Headers
The _list stores (raw_key, lowercase_key, value) tuples, so the
second element is already lowercase. Calling .lower() on it again
is unnecessary and wastes CPU cycles.
Benchmark shows ~1.6x speedup for header lookups.1 parent ae1b9f6 commit 4777295
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
| 337 | + | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
| |||
0 commit comments