Skip to content

[IDE] Enable 'IgnoreSwiftSourceInfo' in code completion #28282

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
merged 1 commit into from
Nov 19, 2019

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Nov 15, 2019

Getting source locations from .swiftsourceinfo is currently expensive. Since they are not necessary for code completion, set IgnoreSwiftSourceInfo to true.

rdar://problem/57194358
https://bugs.swift.org/browse/SR-11767

(This reduces the testing time for IDE/complete_value_expr.swift from 29sec to 22sec).

Get source locations from '.swiftsourceinfo' is currently expensive.
Since they are not necessary for code completion, set
'IgnoreSwiftSourceInfo' to 'true'.

rdar://problem/57194358
https://bugs.swift.org/browse/SR-11767
@rintaro
Copy link
Member Author

rintaro commented Nov 15, 2019

@swift-ci Please smoke test

@akyrtzi
Copy link
Contributor

akyrtzi commented Nov 15, 2019

There seems to be a lot of places that needed update, how about adding some processCompilerInvocationForCodeCompletion function that all these places can call into and if we need more adjustments for code-completion we can modify a single place, instead of searching for all the different places?

@rintaro
Copy link
Member Author

rintaro commented Nov 18, 2019

I agree we should have some unified place for adjusting invocation/instance for completion operations. We already have some duplicated code between completion/typecontextinfo/conformingmethodlist. I will see how we could consolidate them.

@rintaro
Copy link
Member Author

rintaro commented Nov 18, 2019

@akyrtzi Since it's not trivial change, can I do that in separate pull request (#28322)?

@akyrtzi
Copy link
Contributor

akyrtzi commented Nov 18, 2019

Sure!

@rintaro rintaro merged commit dc0cbd3 into swiftlang:master Nov 19, 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