Re:Fast function to parse strings into double (binary64) flo...
by alkonaut on Wednesday March 11, 2020 @05:36AM
(#22544370)
What's a scenario where you have a huge flow of floating point data as text? Assuming it's usually json, but in which case does that happen and you need to work around it (parse faster) rather than fix the underlying problem of having a huge stream of numbers as text?
[ Parent
| on HN ]
Re:Fast function to parse strings into double (binary64) flo...
by blacklion on Wednesday March 11, 2020 @11:41AM
(#22546703)
If you could control both ends, yes. But sometimes you need to consume data produced by entities which you could not control.
Examples? Crypto currency exchanges, for example.
All of them use ugly, often terrible, JSON-based protocols, and some of them have non-trivial amount of trading to see JSON parsers as hot spots.