by sireat · 3y ago · 0 comments
However I am curious on how Arrow beats NumPy on regular ints and floats.
For the last 10 years I've been under impression that int and float columns in Pandas are basically NumPy ndarrays with extra methods.
Then NumPy ndarrays are basically C arrays with well defined vector operations which are often trivially parallelizable.
So how does Arrow beat Numpy when calculating
mean (int64) 2.03 ms 1.11 ms 1.8x
mean (float64) 3.56 ms 1.73 ms 2.1x
What is the trick?Maybe some optimization on multithreading
Still I am reasonably sure Numpy utilizes multithreading already. https://in.nau.edu/arc/parallelism-in-python
And here we assume there are no NaNs.
So something else.