News for hackers. Stuff that matters.
Re:FastDoubleParser: Java port of Daniel Lemires fast_double... by surfsvammel on Monday March 22, 2021 @04:35PM (#26546587)
Is there a downside to this? Or is it just a plain better algorithm? If so, why has it not been implemented in the Java standard libs?
Re:FastDoubleParser: Java port of Daniel Lemires fast_double... by anthony88 on Monday March 22, 2021 @07:22PM (#26548838)
It will load 2 big arrays in memory (per classloader). Code is super complex so maintenance would be very hard. I guess it makes sense to use it as a library (MIT license) if your code parses a log of doubles.
Re:FastDoubleParser: Java port of Daniel Lemires fast_double... by j16sdiz on Tuesday March 23, 2021 @01:08AM (#26551332)
Yes but if you were to modify java runtime, it can just call the native C version
Re:FastDoubleParser: Java port of Daniel Lemires fast_double... by layer8 on Monday March 22, 2021 @06:43PM (#26548372)
The bottleneck is usually I/O, or parsing into large object structures, not double parsing.