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 hot reloading efficiency #3

Open
brigand opened this issue Sep 6, 2017 · 0 comments
Open

Improve hot reloading efficiency #3

brigand opened this issue Sep 6, 2017 · 0 comments

Comments

@brigand
Copy link
Owner

brigand commented Sep 6, 2017

Every X time use dirsum to check if any plugins have changed.

Time

  • Configurable, defaults to 0.5 seconds in development, 30 seconds in production
  • re-evaluate time based on cost

Signal

  • a http request that can only originate from localhost to clear the require cache and reload the config

Testing

  • consider simply deleting the cache every X time instead, compare performance
  • test with more randomly generated plugin files
  • automated tests? not sure how

Questions

  • how long does the checksum take?
  • how long does deleting the cache take?
  • how long does getPlugins take on an empty cache?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant