Skip to content

format-date is slow #29

@waywardmonkeys

Description

@waywardmonkeys

format-date from the system library is slow. This is used for the response's date header, and in the logging code.

One issue here is that since that method is defined to take <string>, there is a lot of generic dispatch including each of the character comparisons.

An easy (but not really correct) fix is to have it take a <byte-string> for the format parameter and have date-stream be a <byte-string-stream> and give it a <byte-string> as the contents.

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