Skip to content
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 intermediate allocation in relayAddrs #609

Merged
merged 1 commit into from
Apr 22, 2019
Merged

Conversation

vyzo
Copy link
Contributor

@vyzo vyzo commented Apr 22, 2019

now that we have the lock for the duration of the method, we don't need the intermediate
relays array. This removes it, and also extends the pre-allocation of the result array
by 2 so that it can cover two localhost and two private address bindings.

now that we have the lock for the duration of the method, we don't need the intermediate
relays array. This removes it, and also extends the pre-allocation of the result array
by 2 so that it can cover two localhost and two private address bindings.
@ghost ghost assigned vyzo Apr 22, 2019
@ghost ghost added the status/in-progress In progress label Apr 22, 2019
@vyzo vyzo requested a review from Stebalien April 22, 2019 17:27
@Stebalien Stebalien merged commit e63ff38 into master Apr 22, 2019
@Stebalien Stebalien deleted the fix/avoid-allocation branch April 22, 2019 17:51
@ghost ghost removed the status/in-progress In progress label Apr 22, 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.

2 participants