-
Notifications
You must be signed in to change notification settings - Fork 548
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
perf: spawn runtime task ASAP #276
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
Arc::clone(&self.resolver), | ||
); | ||
|
||
module_loader.try_spawn_runtime_module_task(); |
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.
being called twice, not sure if intentional
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.
Yeah. It's designed to be abled called multiple times. The first call is to trigger the task and second is to get the runtime ModuleId
.
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.
But calling twice is not a good sign, I have ideas to solve it, but just too many todos on the schedules.
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.
Got it, makes sense!
fdda345
to
1c588b2
Compare
<!-- Thank you for contributing! --> ### Description This also reduce the calling times of `try_spawn_runtime_module_task`. #276 (comment) <!-- Please insert your description here and provide especially info about the "what" this PR is solving --> ### Test Plan <!-- e.g. is there anything you'd like reviewers to focus on? --> ---
Description
Test Plan