2 ms·
There's a pretty simple workaround for this that I discovered fairly early on: Create a deterministic test for your code, write down the expected call counts fo
by hinkley 4y ago
There's a pretty simple workaround for this that I discovered fairly early on: Create a deterministic test for your code, write down the expected call counts for each function, and then look at the actual call counts.
You can spend all week shaving 15% off of an inner loop function or you can notice that it's being called 3x as much as you expected, fix that problem, and get a 60% performance improvement without changing a single line of that function.