Skip to content

Comments

Instead of creating filter for subDirectories to watch in the ancestor directory of root, watch those subDirectories for failed lookup locations#24471

Merged
sheetalkamat merged 2 commits intomasterfrom
watchInSiblingOfRoot
May 30, 2018
Merged

Instead of creating filter for subDirectories to watch in the ancestor directory of root, watch those subDirectories for failed lookup locations#24471
sheetalkamat merged 2 commits intomasterfrom
watchInSiblingOfRoot

Conversation

@sheetalkamat
Copy link
Member

@sheetalkamat sheetalkamat commented May 29, 2018

Before this change, when failed lookup location didn't fall in root directory,
we tried to find the ancestor directory of the rootDirectory to watch.
We also created subDirectory map for the directories that are being watched so we dont go through invalidation if path is unwanted directory
With this change, we will watch those subdirectories instead of root. On windows node supports file system level recursive watching so the earlier approach was better because we reduced number of watches created
But on other os, since node doesn't support it, we create the watches for existing folders ourselves, so earlier approach becomes expensive.
This should be better compromize to satisfy both types of OS.
Fixes #24434

…of module references sibling folder to root with symlLink
…r directory of root, watch those subDirectories for failed lookup locations

Before this change, when failed lookup location didnt fall in root directory,
we tried to find the ancestor directory of the rootDirectory to watch.
We also created subDirectory map for the directories that are being watched so we dont go through invalidation if path is unwanted directory
With this change, we will watch those subdirectories instead of root. On windows node supports file system level recursive watching so the earlier approach was better because we reduced number of watches created
But on other os, since node doesnt support it, we create the watches for existing folders outselves, so earlier approach becomes expensive.
This should be better compromize to satisfy both types of OS.
Fixes #24434
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants