3 ms·
Math.sqrt in a big loop is surprisingly slow. You learn this 0.2 seconds into game development, but I ran into it in a business context recently. 3% of a large
by geraldwhen 4y ago
Math.sqrt in a big loop is surprisingly slow. You learn this 0.2 seconds into game development, but I ran into it in a business context recently.
3% of a large cpu intensive runtime was sqrt.