Skip to content

reduce allocations in RemoteSystemDaemon ActorPath resolution #3842

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

Conversation

Aaronontheweb
Copy link
Member

Also cleaned up the API.

@Aaronontheweb Aaronontheweb added this to the 1.4.0 milestone Jul 7, 2019
Copy link
Member Author

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Described underlying performance changes.

@@ -304,45 +304,26 @@ private void HandleDaemonMsgCreate(DaemonMsgCreate message)
/// <returns>ActorRef.</returns>
public override IActorRef GetChild(IEnumerable<string> name)
{
var elements = name.ToArray();
var path = elements.Join("/");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for redundant .ToArray + Join call. All of the objects passed into this method are IReadOnlyList<string>


private IInternalActorRef GetChild(string name)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for extra GetChild method, which also calls ActorCell.SplitNameAndUid redundantly

@Aaronontheweb Aaronontheweb merged commit 3582131 into akkadotnet:dev Jul 8, 2019
@Aaronontheweb Aaronontheweb deleted the update-RemoteSystemDaemon-ActorResolve branch July 8, 2019 06:52
madmonkey pushed a commit to madmonkey/akka.net that referenced this pull request Jul 12, 2019
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this pull request Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant