Skip to content

strconv: optimize Atoi for common case #20557

@valyala

Description

@valyala

Currently strconv.Atoi isn't optimized for common case when non-negative value is passed to it. Let's optimize it for this case, so users won't recommend creating custom atoi functions such as https://stackoverflow.com/a/27217267 .

The corresponding CL is coming soon.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions