animetosho / Nyuu

Flexible usenet binary posting tool
221 stars 32 forks source link

heavy cpu usage / poor performance with 0.3.6 #42

Closed kuku5hka closed 6 years ago

kuku5hka commented 6 years ago

ouch, tried to switch to 0.3.6, cpu core usage went directly to the roof, post queue went empty and consequently effective speed dropped..

0.3.6

nyuu036

0.3.4

nyuu034

animetosho commented 6 years ago

Looks like you may have hit a live-lock condition (I assume it gets stuck). I'm unable to reproduce it however - are you able to post your command/config?

kuku5hka commented 6 years ago

oh. managed to localize it. turns out that using placeholders in subject causes it. my minimized json

{ "host": "xxx", "port": 563, "ssl": true, "ignore-cert": false, "user": "xxx", "password": "xxx", "connections": 30, "article-size": "700K", "from": "xx@x.x", "groups": "alt.binaries.x", "check-connections": 0, "out": null, "quiet": false }

and it's runned smth like this for /d %c in (.) do x:\nyuu\nyuu.exe --config x:\nyuu\nyuu.json -o "%c".nzb "%c" --subject "[{filenum}/{files}] %c"

when i remove [{filenum}/{files}] everything goes smootly just like in old version when there's just filenum - i see a decent cpu load increased, with two of them - it takes a full core load of my not so new conroe.

..tried it on my main ivy bridge i7 / win10 - similar effect with empty queue and noticeable cpu usage

animetosho commented 6 years ago

Thanks for finding that!