fast-float-rust
gdtoa
fast-float-rust | gdtoa | |
---|---|---|
10 | 2 | |
266 | 28 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | almost 14 years ago | |
Rust | C | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fast-float-rust
-
Good example of high performance Rust project without unsafe code?
I'd like the mention my own refactoring of fast-float-rust to remove nearly all unsafe code for merging into Rust core library which left the performance identical to the previous implementation.
- Exploring Rust performance on Graviton2 (AWS aarch64 CPUs)
-
Making Rust Float Parsing Fast: libcore Edition
JSON is an interesting example, since the syntax of valid floats is slightly different than what Rust expects. Luckily, I'm the author of a minimal, and am also the author of a PR to bring this to fast-float-rust.
-
Eisel-Lemire Algorithm
[4] https://github.com/aldanor/fast-float-rust/
-
Number Parsing at a Gigabyte per Second
It seems also dependent on the processor: https://github.com/aldanor/fast-float-rust/#intel-i7-4771
-
fast-float - a super-fast float parser in Rust
I've already done that (just pushed it - here).
gdtoa
-
how to make ftoa procedure from scratch
Here's a paper that details an optimized algorithm (reference implementation). It also contains a description of a correct, but slow algorithm as well as references to classic papers on the subject. Earlier the classic implementation was the dtoa one included in netlib by David Gay.
-
Number Parsing at a Gigabyte per Second
[2] source code: https://github.com/jwiegley/gdtoa
What are some alternatives?
fast_float - Fast and exact implementation of the C++ from_chars functions for number types: 4x to 10x faster than strtod, part of GCC 12 and WebKit/Safari
ryu - Converts floating point numbers to decimal strings
rand - A Rust library for random number generation.
json - Strongly typed JSON library for Rust
rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266
rust-lexical - Fast numeric to- and from-string conversion routines.
roxmltree - Represent an XML document as a read-only tree.
rust - Empowering everyone to build reliable and efficient software.
simdutf8 - SIMD-accelerated UTF-8 validation for Rust.
ttf-parser - A high-level, safe, zero-allocation TrueType font parser.
rutenspitz - А procedural macro to be used for testing/fuzzing stateful models against a semantically equivalent but obviously correct implementation
fast-float-asm - Utilities to check AMS generation for fast-float-rust