Skip to content

os/user: cache the result of user.Current #11625

Closed
@dsymonds

Description

@dsymonds

user.Current can be expensive (e.g. taking tens of milliseconds when /etc/passwd.cache is big). Caching its result seems like an easy win since lots of disparate bits of code can end up trying to fetch it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions