(towards 312) Remove imports and function declaration from hotpath (__new__ and match)#337
(towards 312) Remove imports and function declaration from hotpath (__new__ and match)#337
Conversation
Codecov Report
@@ Coverage Diff @@
## master #337 +/- ##
==========================================
+ Coverage 91.33% 91.34% +0.01%
==========================================
Files 36 36
Lines 13028 13047 +19
==========================================
+ Hits 11899 11918 +19
Misses 1129 1129
Continue to review full report at Codecov.
|
324199b to
2e08bc7
Compare
|
@arporter This is also ready for review. It removes the imports and a declaration of an inner function (which both have a non-negligible cost) outside the This speedups up 20% the processing of NEMO files. |
2e08bc7 to
163a1cc
Compare
arporter
left a comment
There was a problem hiding this comment.
Impressive.
Changes are all pycodestyle/pylint clean.
Performance with the benchmark is now down from 49s to 41s (ish).
Just a few minor typos to fix and a request for a comment.
|
@arporter Ready for next review |
arporter
left a comment
There was a problem hiding this comment.
All requested changes have been made.
Coverage of the diff is still 100%.
Proceeding to merge.
See performance gains in #312