Skip to content

strconv: use DragonBox instead of Ryu for FormatFloat #74886

@snadrus

Description

@snadrus

DragonBox is a faster algorithm.
NodeJS has already switched as part of accelerating JSON.stringify().
Float to string conversion is used by effectively all Go software, so even a small speed up could be helpful.

This change effects the standard library implementation only. No API changes or functionality changes are part of this proposal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImplementationIssues describing a semantics-preserving change to the Go implementation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Performance

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions