Skip to content

Only set package data map under watch mode - #46211

Merged
Wesley Wigham (weswigham) merged 1 commit into
microsoft:mainfrom
weswigham:only-set-package-realpaths-in-watch-mode
Oct 5, 2021
Merged

Wesley Wigham (weswigham) merged 1 commit into
microsoft:mainfrom
weswigham:only-set-package-realpaths-in-watch-mode

Conversation

@weswigham

Copy link
Copy Markdown
Member

Since they're only used to make watchers in watch mode, the map can be left empty if the watch flag is unset. While we should still take #46209 or #46208 (pending one or both of them fixing the perf issues) to improve watch mode perf, this change should limit the impact of the remaining realpath calls to only the mode they're actually needed for.

@weswigham
Wesley Wigham (weswigham) force-pushed the only-set-package-realpaths-in-watch-mode branch from 1f624f3 to f17c7fd Compare October 5, 2021 17:32
@weswigham
Wesley Wigham (weswigham) merged commit 47cd4d3 into microsoft:main Oct 5, 2021
@amcasey

Copy link
Copy Markdown
Member

Seems right. 👍

@DanielRosenwasser

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) cherry-pick this to release-4.4

@typescript-bot

TypeScript Bot (typescript-bot) commented Oct 5, 2021 •

Copy link
Copy Markdown
Contributor

Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the task to cherry-pick this into release-4.4 on this PR at f17c7fd. You can monitor the build here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Daniel Rosenwasser (@DanielRosenwasser), I couldn't open a PR with the cherry-pick. (You can check the log here). You may need to squash and pick this PR into release-4.4 manually.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

4 participants