Skip to content

Consider moving from ryu to lexical-core for string formatting / casting floats to string. #7496

@Dandandan

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

We mostly use lexical-core for parsing and formatting numbers. In #5401 usage of ryu (instead of std formatter) was added to speed up float casting. However, lexical-core also has implemented some performance improvements / new algorithms to speed up number formatting.

See https://github.com/Alexhuszagh/rust-lexical?tab=readme-ov-file#benchmarks--write-float for latest comparison.

Describe the solution you'd like

Test lexical-core again for speed to potentially remove the usage of ryu and maybe some performance gain.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelogperformance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions