-
Notifications
You must be signed in to change notification settings - Fork 6k
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
avoid copying ActorTableData when NodeMananger updates an actor to GCS #5244
Conversation
Test PASSed. |
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
// TODO(swang): If this is an actor that was reconstructed, and previous | ||
// actor notifications were delayed, then this node may not have an entry for | ||
// the actor in actor_regisry_. Then, the fields for the number of | ||
// reconstructions will be wrong. | ||
if (actor_entry == actor_registry_.end()) { | ||
actor_info_ptr.reset(new ActorTableData()); |
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.
make_shared?
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.
One more copy.
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.
No matter to copy a smart pointer here I think.
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.
In general, make_shared will be more efficient I think.
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. Can you resolve the conflicts? and then we can merge it.
Test FAILed. |
Test FAILed. |
Test PASSed. |
Test PASSed. |
What do these changes do?
Related issue number
Linter
scripts/format.sh
to lint the changes in this PR.