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

Suspend inbox loading on sends #14732

Merged
merged 4 commits into from
Nov 21, 2018
Merged

Suspend inbox loading on sends #14732

merged 4 commits into from
Nov 21, 2018

Conversation

joshblum
Copy link
Member

Suspend inbox loads when sending any messages as a potential optimization of the send path. It seems like the machinery was already in place, were there any other places we should be calling this?

@joshblum joshblum requested a review from mmaxim November 16, 2018 21:27
Copy link
Contributor

@mmaxim mmaxim left a comment

Choose a reason for hiding this comment

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

Not quite right, you probably really want this in BlockingSender, although to be honest I'm not even sure this is a great idea there anymore. We should discuss.

@joshblum joshblum force-pushed the joshblum/cancel-CORE-9432 branch 2 times, most recently from 8714714 to 93b194a Compare November 19, 2018 18:18
@joshblum
Copy link
Member Author

@mmaxim updated ptal!

@@ -1660,3 +1660,16 @@ func SetUnfurl(mvalid *chat1.MessageUnboxedValid, unfurlMessageID chat1.MessageI
}
mvalid.Unfurls[unfurlMessageID] = unfurl
}

// SuspendComponent will suspend the global ConvLoader until the return
Copy link
Contributor

Choose a reason for hiding this comment

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

Suspends any Suspendable, not just ConvLoader

Copy link
Contributor

@mmaxim mmaxim left a comment

Choose a reason for hiding this comment

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

Just fix comment (I know its mine originally)

@joshblum joshblum merged commit c241774 into master Nov 21, 2018
@joshblum joshblum deleted the joshblum/cancel-CORE-9432 branch November 21, 2018 15:56
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