-
Notifications
You must be signed in to change notification settings - Fork 61
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
check dns concurrently to speed up lookup #91
Comments
I would like to invite @jayvdb to this conversation, since he is the one who implemented DNS checking. |
for reference, this is the hacky way I was refering to:
|
Sounds like a great idea, and should complement caching nicely. Also |
I was studying the code to find a way to achive concurrency in the dns lookup. But I kind got stuck because I seems that there's a cursor in |
I believe synchronous process for checking domain is already in place. That is the current behavior, right? I am thinking about keep checking DNS the way it is now for We could modify |
Second thing is that this brings complexity to user settings. We should allow users to set maximum number of concurrent processes/threads. Probably also set of timeout value. And maybe other things that I am not aware of right now. |
Great! I was thinking of adding concurrency in the |
OK, could you also think about how to do it so we have the code not tangled. For example: If we can separate all DNS checking parts to its own class/module? This is just and idea I did not look to the code how tricky it will be. |
Is there any room to check dns concurrently as it might be a time consuming task? I've found some hacky ways to do that, but maybe it could be a flag on
find_urls
.I'm aware this would increase the complexity of this function a lot.
The text was updated successfully, but these errors were encountered: