alfred-screensharing
alfred-screensharing copied to clipboard
Fix sluggishness
When running the dns-sd command, it must be killed to list the results. Currently a 1 second delay is used which makes the results display very slowly. This drops it to 1/10th of a second (0.1). The results appear instant.
Thanks for your pull request. Does this work if your DNS cache is cold, e.g. after a reboot?
I had to increase this timer for making things work with Mavericks (see 57ff83712cc2159e42251df4b0f05ff86dc35d3b) as they seemingly changed the way how they discover network services, probably to save energy. Please note that this is just a wild guess.
Ah! Perhaps a retry if no results? Originally I started looking for another workflow as this one was so slow. Luckily I took the time to debug it instead (as everything else works great) and now it's blazing fast (which makes search usable).
I'm not near my Mac so I'm not sure if a fresh cache would be problematic.
Retry, yeah why not. I'm waiting for your feedback about the cache. How many hosts do you have in your network that makes you want to search for them, I'm impressed :+1:
I just have a few hosts on my network that have VNC. This is just much faster with the shorter sleep.