Skip to content

time: make nsec in time.Time an int32 when GC is precise #7446

@alberts

Description

@alberts
If possible, include a link to a program on play.golang.org.

I was just browsing through the code for time.Time and found this:

// TODO(rsc): When the garbage collector is completely
// precise, change back to int32.
nsec uintptr

Which version are you using?  (run 'go version' or 'gccgo --version')

tip

Please provide any additional information below.

This change will make time.Times 4 bytes smaller on 64-bit platforms.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions