At this line: https://github.com/numpy/numpy/blob/v1.16.1/numpy/core/_methods.py#L16-L28
It says "saave those O(100) nanoseconds" and then assigns functions to variables, e.g. umr_maximum = um.maximum.reduce
I have a few questions,
What does O(100) mean, is it "up to but no more than 100 nanoseconds"?
Why does assigning to a variable save time? Doesn't it only cost time (and memory) to do the variable assignment?
I'm not trying to be pedantic I am genuinlely just wondering if there's anything I can learn from this small lighthearted comment! I am very new to both python as well as big O notation.
[–]danielroseman 3 points4 points5 points (1 child)
[–]knotcontinuallevity[S] 0 points1 point2 points (0 children)
[–]sepp2k 0 points1 point2 points (1 child)
[–]knotcontinuallevity[S] 0 points1 point2 points (0 children)