Opened 8 years ago

Last modified 6 years ago

#1067 open enhancement

Combine i2psnark sender threads

Reported by: zzz Owned by: zzz
Priority: minor Milestone:
Component: apps/i2psnark Version:
Keywords: performance Cc:
Parent Tickets: Sensitive: no


Snark currently has two threads per connection - Snark reader aka PeerConnectionIn?, and Snark sender aka PeerConnectionOut?.

It seems like the PeerConnectionOut? threads could be combined to a "pumper" model where it loops through the connections round-robin and only pushes a message if it would not block in streaming. The trick is making sure it wouldn't block.

Centralizing output in a per-torrent pumper would also lay the groundwork for better outbound bandwidth management.


Change History (2)

comment:1 Changed 7 years ago by str4d

Keywords: performance added
Milestone: 0.9.12

comment:2 Changed 6 years ago by str4d

Status: newopen
Note: See TracTickets for help on using tickets.