News for hackers. Stuff that matters.
Re:The One Billion Row Challenge by londons_explore on Thursday January 04, 2024 @11:21AM (#38868831)
Maintaining sum+count is more expensive than you'd imagine... Because to maintain the sum, you need to convert the numbers from ascii to decimal. And to do that you at least need to know the memory alignment of the number and the position of the decimal point.

All far more expensive than the state machine approach which is pretty much 'alignment doesn't matter, ascii doesn't matter, we're gonna just handle all possible states that could end up in a 32 bit register').

There are no comments on this comment yet.