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

refactor(server): remove needless clone in ws background task #1203

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

niklasad1
Copy link
Member

No description provided.

@niklasad1 niklasad1 requested a review from a team as a code owner September 15, 2023 12:32
async fn execute_unchecked_call<L: Logger>(
params: Arc<ExecuteCallParams<L>>,
data: Vec<u8>,
bounded_subscriptions: BoundedSubscriptions,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch 👍

Would be interesting to see how big the performance improvement is, since I would expect the BoundedSubscriptions clone to be cheap (contains an Arc<..> and a u64)

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, shouldn't matter in practice but found it when I was debugging stuff :P

@niklasad1 niklasad1 merged commit 5be9866 into master Sep 15, 2023
15 checks passed
@niklasad1 niklasad1 deleted the na-server-remove-needless-clone branch September 15, 2023 15:18
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.

3 participants