struson icon indicating copy to clipboard operation
struson copied to clipboard

Speed up number serialization using itoa and ryu crates

Open Marcono1234 opened this issue 2 years ago • 0 comments

Problem solved by the enhancement

The speed of number serialization could probably be improved.

Enhancement description

Investigate usage of the libraries https://docs.rs/itoa and https://docs.rs/ryu for number serialization (see also TODO comments in Struson code). Have to verify that using them increases the serialization speed.

Usage of these crates should be controlled by a (single) opt-in feature. This keeps the number of dependencies for the default features low and might avoid potential incompatibilities between the serialized output.

Marcono1234 avatar Apr 21 '23 22:04 Marcono1234