Updated all logging to be lazy-loaded#36
Conversation
|
|
|
Testing with the provided benchmark, this makes a huge difference in performance: Before fix: After Fix: |
|
Had to close and re-open PR to fix issues with SLA not being recognized. |
|
looks like one test failure on test_trace_decorator to address. |
Ops. Missed that one. Fixed. |
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #36 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 2602 2601 -1
=========================================
- Hits 2602 2601 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
The current logging isn't lazy-loaded. This means that all statements are evaluated even with logging disabled. This can have pretty a measurable impact on performance.