News for hackers. Stuff that matters.
Re:How to Correctly Sum Up Numbers by 77pt77 on Tuesday November 05, 2024 @01:08PM (#42053809)
sorting is nlogn in general and faster for numerics.

Plus after sorting you can use SIMD to sum everything much faster.

But yes, xsum and the like are more accurate.

There are no comments on this comment yet.