alfred-screensharing icon indicating copy to clipboard operation
alfred-screensharing copied to clipboard

Fix sluggishness

Open ericboehs opened this issue 10 years ago • 4 comments

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.

ericboehs avatar Dec 01 '14 23:12 ericboehs

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.

pstadler avatar Dec 03 '14 08:12 pstadler

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.

ericboehs avatar Dec 03 '14 09:12 ericboehs

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:

pstadler avatar Dec 03 '14 09:12 pstadler

I just have a few hosts on my network that have VNC. This is just much faster with the shorter sleep.

ericboehs avatar Jun 25 '15 01:06 ericboehs