Skip to content

Use fast-float-rust for f32/f64 parsing in the tokenizer #153

Description

@Wolren

Currently every WKT number parses via T::from_str (tokenizer.rs:85). fast-float (MIT/Apache-2.0) is the same Eisel-Lemire algorithm specialized to decimals.

Swapping it for my internal WKT reader on larger files results in roughly 10-15% faster reads with identical rounding.

This would be an addition to #118 as it requires concrete numeric types instead of the current T: FromStr. Smaller improvement than ryu but still worthwhile in my opinion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions