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

Improve cold start times #4

Open
1 of 2 tasks
efcaguab opened this issue Aug 21, 2021 · 1 comment
Open
1 of 2 tasks

Improve cold start times #4

efcaguab opened this issue Aug 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@efcaguab
Copy link
Contributor

efcaguab commented Aug 21, 2021

The app is relatively slow to start when the containers are cold. We should do a few adjustments to improve this situation.

  • Install the package in the docker image instead of loading it during the app initialisation (should shave off about half a second)
  • Reduce dependencies: apexcharter has an unneeded dependency to ggplot2 which add a few extra ones. Pkgload could also be removed if we install the package in the docker image and the dependency on golem (which in turn imports a lot of packages) could also be removed. Not sure how much improvement could be achieved doing this but at least the code will be more maintainable.

Alternatives like pinging the app with a CRON job could also be tried in the future.

@efcaguab efcaguab added the enhancement New feature or request label Aug 21, 2021
efcaguab added a commit that referenced this issue Aug 23, 2021
@efcaguab
Copy link
Contributor Author

Removed pkgload in 56652f3

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

No branches or pull requests

1 participant