Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Reduce CPU for Headers.ClearFast #492

@benaadams

Description

@benaadams

FrameResponseHeaders.ClearFast and FrameRequestHeaders.ClearFast consume 4.75% cpu between them

cpu-trace

As they set (copy) 71 fields of the struct StringValues.Empty; all these can be dropped as they have already been "cleared" by setting _bits = 0;

Currently would be 71 small copies of 8 bytes (568 bytes) and 16 bytes with the #491 changes (1136 bytes); which cloud be saved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions