Ignore:
Timestamp:
Jan 2, 2009, 7:56:06 PM (12 years ago)
Author:
charles
Message:

(trunk libT) avoid some unnecessary memory fragmentation... for composited objects that have a tr_bandwidth, contain the it directly rather than a pointer to one allocated elsewhere on the heap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r7553 r7580  
    4141#include "web.h"
    4242#include "crypto.h"
     43
     44#define dbgmsg( ... ) \
     45    do { \
     46        if( tr_deepLoggingIsActive( ) ) \
     47            tr_deepLog( __FILE__, __LINE__, NULL, __VA_ARGS__ ); \
     48    } while( 0 )
    4349
    4450static tr_port
     
    369375    session->lock = tr_lockNew( );
    370376    session->tag = tr_strdup( tag );
     377    dbgmsg( "tr_sessionInit: the session's top-level bandwidth object is %p", session->bandwidth );
    371378
    372379    tr_bencInitDict( &settings, 0 );
     
    800807
    801808#define SHUTDOWN_MAX_SECONDS 30
    802 
    803 #define dbgmsg( ... ) \
    804     do { \
    805         if( tr_deepLoggingIsActive( ) ) \
    806             tr_deepLog( __FILE__, __LINE__, NULL, __VA_ARGS__ ); \
    807     } while( 0 )
    808809
    809810void
Note: See TracChangeset for help on using the changeset viewer.