Skip to content

cmd/compile: 1.15 heap allocations regression when calling Write on os.Stdout [1.15 backport] #41543

Closed
@gopherbot

Description

@gopherbot

@ianlancetaylor requested issue #41474 to be considered for backport to the next 1.15 minor release.

@gopherbot Please open a backport issue for 1.15.

This is an unexpected and unavoidable performance regression in 1.15: using Write to write a []byte forces the []byte to escape into the heap. That did not happen in 1.14.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions