3 ms·
How many checkboxes were there, that you actually noticed the delay in a N^2?
How many checkboxes were there, that you actually noticed the delay in a N^2?
Maybe 8 checkboxes, but hundreds of products.
O(N^2) can cause slowdown very fast. 1000^2 is a million operations. 10000^2 is 100 million operations. If each operation is 100 instructions, that's 10Ghz very roughly. That would cause pauses even with a modern CPU.