aldanor / fast-float-rust

Super-fast float parser in Rust (now part of Rust core)
https://docs.rs/fast-float
Apache License 2.0
275 stars 20 forks source link

Remove Endian-Dependent Code Paths #26

Closed Alexhuszagh closed 3 years ago

Alexhuszagh commented 3 years ago

Issue

Currently, read_u64 is only used on little-endian architectures, providing optimizations only for little-endian systems. Since this is an important optimization during parsing, it should be important to ensure this works on all architecture byte-orders, big and little.

Fix