mirror of
https://github.com/apple/swift-http-types
synced 2026-11-24 04:37:51 +00:00
### Motivation We like faster and simpler code. When optimizing performance we focus on often used use-cases. ### Changes - Reimplement HTTPFields on top of a simple Array ### Result - HTTPFields building becomes significantly faster - HTTPFields lookups are faster for small fields, and only slightly slower for larger (nearly always offset by reduced build time) Follow ups: - Make the equality implementation smarter