News for hackers. Stuff that matters.
Re:Joining a billion rows 20x faster than Apache Spark by alexchamberlain on Thursday February 09, 2017 @05:13PM (#13611519)
Python 2.7 can do it in 0.0867 usec (Intel i7);

    $ python2.7 -m timeit 'n=10**9; (n*n + n) / 2'
    10000000 loops, best of 3: 0.0867 usec per loop
(Admittedly, I killed `n=109; sum(range(1,n+1))`.)

There are no comments on this comment yet.