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

perf(language-service): avoid looping through all items twice #3158

Merged
merged 3 commits into from May 13, 2023

Conversation

kalvenschraut
Copy link
Contributor

@kalvenschraut kalvenschraut commented May 11, 2023

Noticed this while working on my other PRs, I saw two forEachs over the item to avoid this.

@kalvenschraut kalvenschraut changed the base branch from master to v1 May 11, 2023 14:02
@kalvenschraut kalvenschraut changed the title perf(language-service): uneeded await blocking other iterations from running perf(language-service): avoid looping through all items twice May 11, 2023
@johnsoncodehk
Copy link
Member

Thanks, I messed up this code so I'm still leaning towards not merging into a loop just to make the logic a bit more readable, but I'm keeping your cached getNameCasing() improvement.

@johnsoncodehk johnsoncodehk merged commit f10d57e into vuejs:v1 May 13, 2023
3 checks passed
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.

None yet

2 participants