Ignore:
Timestamp:
Jun 14, 2009, 10:19:19 PM (12 years ago)
Author:
charles
Message:

(trunk libT) avoid an extra per-torrent malloc/free by aggregating its tr_bandwidth into its struct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.h

    r8433 r8693  
    1818#define TR_TORRENT_H 1
    1919
     20#include "bandwidth.h" /* tr_bandwidth */
    2021#include "completion.h" /* tr_completion */
    2122#include "ratecontrol.h" /* tr_ratecontrol */
     
    173174    tr_completeness            completeness;
    174175
     176    struct tr_bandwidth        bandwidth;
     177
    175178    struct tr_tracker *        tracker;
    176179    struct tr_publisher_tag *  trackerSubscription;
     
    214217    int                        uniqueId;
    215218
    216     struct tr_bandwidth      * bandwidth;
    217 
    218219    struct tr_torrent_peers  * torrentPeers;
    219220
Note: See TracChangeset for help on using the changeset viewer.