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

Fast polling #1

Closed
3 tasks done
g105b opened this issue Dec 10, 2017 · 0 comments
Closed
3 tasks done

Fast polling #1

g105b opened this issue Dec 10, 2017 · 0 comments

Comments

@g105b
Copy link
Member

g105b commented Dec 10, 2017

There are too many problems running inotify within Docker environments, so polling will be used.

  • Find topmost directory of each build section (src/script/**/*.js becomes src/script)
  • Poll the directory's contents using something like tar c $directory | md5sum
  • Only md5 matching globs otherwise images within style directories might take some time!

Tested this on 100MB of static assets and it takes 0.2s to poll. Not bad for worst case scenario.

@g105b g105b added this to the v1 milestone Feb 22, 2018
@g105b g105b closed this as completed Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant