Skip to content

download: do not busy loop, share url list between threads#34

Open
sergezloto wants to merge 1 commit into
Tencent:masterfrom
scortexio:lower-cpu-and-mem
Open

download: do not busy loop, share url list between threads#34
sergezloto wants to merge 1 commit into
Tencent:masterfrom
scortexio:lower-cpu-and-mem

Conversation

@sergezloto

Copy link
Copy Markdown

Fixed main thread that was taking 100% cpu actively polling for other thread exits.
Reuse the list of URLs instead of creating and reading in each thread.

@sergezloto sergezloto closed this Dec 2, 2018
@sergezloto sergezloto reopened this Dec 2, 2018
@wubaoyuan

Copy link
Copy Markdown
Collaborator

@sergezloto Thanks a lot. We will test your pulled codes asap.

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

Successfully merging this pull request may close these issues.

2 participants