Skip to content

Cache the result of environment checks #5180

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

Closed
rosen-vladimirov opened this issue Dec 5, 2019 · 0 comments
Closed

Cache the result of environment checks #5180

rosen-vladimirov opened this issue Dec 5, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@rosen-vladimirov
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently most of the CLI commands check the environment, which takes a lot of time. For example, when tns run ios is executed, it takes between 6 and 12 seconds on my machine to validate the environment. When the command is stopped and run again, it checks the environment again.

Describe the solution you'd like
Cache the result of the first check and if the conditions are not changed, use the cache result. For example, in case the value of ANDROID_HOME is changed, the result should not be used from the cache.
In case tns doctor is executed, skip the cache and always check the results.

Describe alternatives you've considered
No.

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants