Repository navigation
Refactoring ParforDiagnostics - #6545
Conversation
0519e3a to
e0c98f5
Compare
e0c98f5 to
c391c95
Compare
|
@1e-to thanks for the patch. Before review, just want to check that the intention here is largely code motion with view of putting the diagnostics stuff all in the same place? There should be no functional change? |
Yes, some functionality has been moved from the dump to separate functions so that we can reuse it. |
stuartarchibald
left a comment
There was a problem hiding this comment.
Thanks for the patch. The diagnostic reporting isn't heavily tested in the Numba test suite, however this patch is pretty much just code motion with a small amount of clean up of dead code so I think the risk is minimal. The refactoring presented is a good improvement over having the diagnostics inlined. I've checked this locally and the reports seem identical. Happy to merge as-is. Thanks again!
We need to be able to get "all_lines" to reuse it in our ExtendedParforDiagnostics to avoid code duplication.
Also now "dump" function is too complicated so this refactoring was made.