Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Skip expensive repr() in logging call when not needed
We were spending quite a lot of time in this function when running
tests, based on profiling.
  • Loading branch information
JukkaL committed Oct 28, 2023
commit 325dadcb419fb2bac8075da85a30925c5754d678
3 changes: 2 additions & 1 deletion mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ def _build(
stdout=stdout,
stderr=stderr,
)
manager.trace(repr(options))
if manager.verbosity() >= 2:
manager.trace(repr(options))

reset_global_state()
try:
Expand Down