Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#2261 closed Enhancement (fixed)

Use less memory on startup by not initializing the RPC zlib stream until it's needed

Reported by: charles Owned by: charles
Priority: Normal Milestone: 1.73
Component: libtransmission Version: 1.72
Severity: Normal Keywords:
Cc:

Description (last modified by charles)

On startup, the RPC HTTP server creates a single zlib stream that's used to process compressed RPC requests from remote clients like Clutch and transmission-remote.

According to massif, this zlib stream accounts for about 10% of the memory used on startup by r8772 of the gtk client. This isn't a huge amount, but since many users don't use / don't need the web client, it's memory use worth pruning. We should lazily defer initializing the stream until the first time it's needed.

Change History (8)

comment:1 Changed 13 years ago by charles

  • Status changed from new to assigned

comment:2 Changed 13 years ago by charles

  • Resolution set to fixed
  • Status changed from assigned to closed

Committed to trunk in r8773 for 1.73

comment:3 Changed 13 years ago by charles

  • Description modified (diff)

comment:4 Changed 13 years ago by charles

  • Summary changed from Save memory by not initializing the RPC server's zlib stream until it's needed to Use less memory on startup by not initializing the RPC zlib stream until it's needed

comment:5 Changed 13 years ago by charles

  • Priority changed from Normal to High

comment:6 Changed 13 years ago by charles

  • Priority changed from High to Normal

comment:7 Changed 12 years ago by charles

  • Keywords backport-1.5x added

comment:8 Changed 12 years ago by charles

  • Keywords backport-1.5x removed
Note: See TracTickets for help on using tickets.