Skip to content

cmd/gc, time: make Format 5x faster #3679

@rsc

Description

@rsc
A combination of changes to Format and making the compiler handle strings better can
make time.Format 5x faster than it is now.  Do that.

The experiment justifying this claim is CL 6249062, although that CL is not intended for
submission.  It works around compiler inadequacies instead of addressing them.

benchmark          old ns/op    new ns/op    delta
BenchmarkFormat         2596          507  -80.47%

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