Skip to content

[sourcekitd] Be more aggresive with the semantic editor delay to avoid being throttled #13147

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

Merged

Conversation

benlangmuir
Copy link
Contributor

Set a minimum delay of 10 seconds for the semantic editor requests instead of starting from 0/1 second. This helps prevent us from being throttled by the system if we have multiple crashes in a row, which allows us to keep syntactic requests working. This trades off the minimum time it takes to recover e.g. code-completion after a crash in exchange for keeping our most basic functionality working.

rdar://18326221

Set a minimum delay of 10 seconds for the semantic editor instead of
starting from 0/1 second.  This helps prevent us from being throttled by
the system if we have multiple crashes in a row, which allows us to keep
syntactic requests working.

rdar://18326221
These are semantic requests and should obey the delay to ensure we don't
trigger too many crashes.

rdar://18326221
@benlangmuir benlangmuir requested a review from akyrtzi November 29, 2017 19:20
@benlangmuir
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@akyrtzi akyrtzi left a comment

Choose a reason for hiding this comment

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

LGTM!

@benlangmuir benlangmuir merged commit 1898b63 into swiftlang:master Nov 29, 2017
@benlangmuir benlangmuir deleted the sourcekitd-sema-delay-throttle branch November 29, 2017 23:27
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