-
Notifications
You must be signed in to change notification settings - Fork 130
[V2]Reduce the compile time,by doing Multithreaded compilation #2973
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
base: master
Are you sure you want to change the base?
Conversation
abb1045 to
863aa2f
Compare
Making use of built in functions to compile Signed-off-by: vrbagalkot <[email protected]>
|
|
@AYUSHJAIN951 Please review. |
AYUSHJAIN951
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Just please attach some more run logs, for code parts you are changing here.
| make_cmd = 'make -C %s %s -C %s run_tests' % ( | ||
| self.sourcedir, kself_args, test_comp) | ||
| self.result = process.run(make_cmd, shell=True, ignore_status=True) | ||
| args = '-C %s %s -C %s run_tests' % (self.sourcedir, kself_args, test_comp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit use f strings here as well, as you are using same in other changed parts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f is being used in the below line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which is actually not even needed there, it can be just
args = " -C {self.sourcedir} {kself_args} -C {test_comp} run_tests"
self.result = build.run_make(path=self.sourcedir, extra_args=args)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, you said, to use f string... Am I missing anything?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aah sorry
args = f" -C {self.sourcedir} {kself_args} -C {test_comp} run_tests"
self.result = build.run_make(path=self.sourcedir, extra_args=args)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, existing code should also be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with both, just attach some more logs, and I am good here
Making use of built in functions to compile