Ignore:
Timestamp:
Feb 23, 2011, 6:01:16 AM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4051 "Use composition for the tr_history fields in tr_peer" -- fixed.

If we use composition on these objects we can save a handful of pointers per peer. This isn't a big deal, but it's an easy/safe change to do.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.h

    r11950 r12013  
    123123    time_t                   chokeChangedAt;
    124124
    125     tr_recentHistory       * blocksSentToClient;
    126     tr_recentHistory       * blocksSentToPeer;
    127 
    128     tr_recentHistory       * cancelsSentToClient;
    129     tr_recentHistory       * cancelsSentToPeer;
     125    tr_recentHistory         blocksSentToClient;
     126    tr_recentHistory         blocksSentToPeer;
     127
     128    tr_recentHistory         cancelsSentToClient;
     129    tr_recentHistory         cancelsSentToPeer;
    130130
    131131    struct tr_peermsgs     * msgs;
Note: See TracChangeset for help on using the changeset viewer.