Skip to content

fix(language-service): improve performance of updateModuleAnalysis() - #15543

Merged
vicb merged 1 commit into
angular:masterfrom
chuckjaz:ls-perf
Mar 28, 2017
Merged

vicb merged 1 commit into
angular:masterfrom
chuckjaz:ls-perf

Conversation

@chuckjaz

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce? (check one with "x")

[x] Bugfix

What is the current behavior? (You can also link to an open issue here)

Per-file information is not cached between changes in the language service.

What is the new behavior?

Per-file metadata information is now cached and invalidated when files change.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe add a field summaryFilePath: string in ResolvedStaticSymbol instead of the map?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It is much quicker to have the hash table return the array directly instead of scanning all the resolved symbols for the file. Since this is a perf optimization I believe the hash table is justified.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe remove { and }?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants