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

Very slow sometimes #2

Open
sbressler opened this issue Oct 25, 2021 · 1 comment
Open

Very slow sometimes #2

sbressler opened this issue Oct 25, 2021 · 1 comment

Comments

@sbressler
Copy link

sbressler commented Oct 25, 2021

So I've been using this for a month and it works great most of the time. I wrapped the script in an Automator app that simply does this:
$ node /Users/me/bin/elgato-key-light-automator/index.js

Sometimes (seems about 1 in 10) it's very slow to execute (1 minute plus). I just started trying to add tracing events to debug further. I imagine it's not an issue with Node and suspect it could be Bonjour.

Any ideas? Suggestions for tracing?

@sbressler
Copy link
Author

I just switched back to the version pre-Bonjour (ead7eb0) and I see zero delays (running the script in a loop more than a dozen times). Any ideas how to make Bonjour more reliable? Should the script use Bonjour, then cache the IP, then only use Bonjour again if the cached IP isn't found?

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