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

Add cache for checking updated dependencies #129

Merged
merged 4 commits into from
May 21, 2016
Merged

Conversation

hzoo
Copy link
Contributor

@hzoo hzoo commented May 13, 2016

#128

Probably not the best but it seems to work on Babel (where the max callstack error happened).

Examples:
babel-types -> all packages updated
babel -> babel only (no other dependencies)
stage-3 preset -> stage-0, stage-1, stage-2, stage-3

return true;
}

return !!find(dependencies, dep => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think find was previously only getting the first dependency?

Copy link
Contributor

Choose a reason for hiding this comment

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

Well it would stop as soon as it found a path where A depended on B. But I guess that doesn't necessarily speed it up because every path is going to be checked anyways.

There has to be a way of representing this data that makes it easy to check every path by simply folding dependencies over. But caching works well enough.

@jamiebuilds
Copy link
Contributor

👍

@hzoo hzoo merged commit 72bd936 into master May 21, 2016
@hzoo hzoo deleted the updated-deps-cache branch May 21, 2016 01:10
hzoo added a commit that referenced this pull request May 21, 2016
@lock
Copy link

lock bot commented Dec 28, 2018

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
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.

None yet

2 participants