Skip to content

cmd/gc: optimize memset idiom #5373

Closed
Closed
@bradfitz

Description

@bradfitz
There should be a fast way to zero memory.

When implementing object pools (reusing []byte or []int), for safety the application's
pool allocator needs to zero memory before giving it back out to callers.  Currently Go
can't do it very quickly.

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