FormatCode function used in mmengine.config.config.py consumes a lot of time. #1022
Unanswered
michaelyyq
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Every time I debug the code, Runner.from_cfg(cfg) takes a lot of time.
I found that
self._log_env(env_cfg)
andself.visualizer.add_config(self.cfg)
are the time killers which is beyond what I thought.Then you will find
text, _ = FormatCode(text, style_config=yapf_style, verify=True)
consumes time the most just as the process is stopping.Have your team planned to fix the time-consuming problem. I think that log thing taking up so much time is ridiculous.
Beta Was this translation helpful? Give feedback.
All reactions