by ok123456 · 2mo ago · 0 comments
If you are really concerned about it, compute the empirical roofline for your machine.
Also, if the point is to point out memory hierarchies, it's not 'quadratic performance.' The algorithm doesn't behave differently once it spills over. The costs just get bigger.
By a constant factor no less (until we get into theoretical physics)