These are chat archives for anacrolix/torrent

25th
Jul 2018
Matt Joiner
@anacrolix
Jul 25 2018 04:30
Got a massive CPU improvement for long running torrent clients coming
More reason to drop support for the Go only utp implementation though.
Denis
@elgatito
Jul 25 2018 04:31
improvement in go-libutp?
Denis
@elgatito
Jul 25 2018 05:28
fastcgo usage in go-libutp?
Matt Joiner
@anacrolix
Jul 25 2018 06:43
nah, turns out accepting in libutp is very expensive, and we know when we are expecting connections so i use the firewall callback to ignore them when we don't want connections
my prod servers were sitting on 40-80% cpu just dealing with incoming utp connect traffic
Denis
@elgatito
Jul 25 2018 06:44
that is probably when lot of peers are there?
Matt Joiner
@anacrolix
Jul 25 2018 06:45
yes
i don't think i'ts every caused the server to actually be slow, but it does use an annoying amount of CPU
the locking is complex tho to coordinate the firewalling i haven't pushed anything yet cause i had a lot of deadlocks in prod
Denis
@elgatito
Jul 25 2018 06:45
then I will include that fix in today's release
Matt Joiner
@anacrolix
Jul 25 2018 06:46
i did also do a huge optimization to bencode
which reduces the DHT and downloading overheads
by about 50%
i haven't seen any problems yet, it was a very aggressive fix in some spots
Denis
@elgatito
Jul 25 2018 06:46
nice
Matt Joiner
@anacrolix
Jul 25 2018 06:48
i have some minor improvements to accept performance, and packet reading on linux, but i'll hold off on them for now
Matt Joiner
@anacrolix
Jul 25 2018 07:08
i'll push some stuff now if you want to give it a spin
Denis
@elgatito
Jul 25 2018 08:17
pf... released a kill-bug, so making a new one and your fixes will go there
Matt Joiner
@anacrolix
Jul 25 2018 08:18
what's that? :P
Denis
@elgatito
Jul 25 2018 08:18
app is updating itself and can't start then =
Denis
@elgatito
Jul 25 2018 08:50
okay, it's released, so we'll get some feedbacks about download speeds