Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switched log message from f-string to deferred formatting for performance #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwightgunning
Copy link

There's an optimization suggestion to defer string formatting in log messages by passing the values to be interpolated as arguments. Not a big deal for this simple "string into string" (though since this is middleware we expect it be called a lot ... so we can save a few ticks).

@codecov
Copy link

codecov bot commented Jan 4, 2021

Codecov Report

Merging #6 (f2360fd) into master (e9f3e61) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master        #6   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines           16        16           
  Branches         1         1           
=========================================
  Hits            16        16           
Impacted Files Coverage Δ
x_robots_tag_middleware/middleware.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e9f3e61...f2360fd. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant