Skip to content

Cannot understand the line #5

@khalibartan

Description

@khalibartan

@npcoder2k14 Why are you using multiprocessing pool at here https://github.com/npcoder2k14/SpeedTest/blob/master/speed.py#L71 , as per my understanding at a time you can only send request to a particular server, launching pools will put them in a waiting #queue, instead you can call the function sequentially , saving overheads attached with command queues, etc thus less time in searching for a proxy. Also files are not automatically removed. Use of open is deprecated https://github.com/npcoder2k14/SpeedTest/blob/master/speed.py#L33 , use with open instead, there.
Also will 5 seconds do the job instead of 10 ? 10 seconds is quite a lot of time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions