Opened 6 years ago

Last modified 3 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:


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.

Subtickets (add)

Change History (2)

comment:1 Changed 4 years ago by str4d

  • Keywords performance added
  • Milestone 0.9.12 deleted

comment:2 Changed 3 years ago by str4d

  • Status changed from new to open
Note: See TracTickets for help on using tickets.