Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add performance test for nested looping
This is extremely curious: in a nest of 3 loops, I get a huge performance gain (10x) by moving the inner loop into a separate function. If I had to speculate wildly, I suspect this has something to do with the compiler worrying that the outer loop variables might be changed by the inner loop? And that putting it inside a function removes that concern?
- Loading branch information
73d8ca4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love these new performance tests.
73d8ca4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is due to the limits on specializing for tuple types. I will experiment with increasing or removing this limit and see if the cost is reasonable.