Skip to content

speed up http header reading via net/textproto/reader.go #2083

@msolo

Description

@msolo
My app was creating a lot of garbage in http header reading. This patch passes a slice
and removes and unnecessary intermediate copy. 

This increased my throughput from ~2500qps -> ~3000qps on my test app.

Attachments:

  1. header-read-optimization.patch (1098 bytes)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions