Ignore:
Timestamp:
Feb 14, 2008, 12:52:58 AM (14 years ago)
Author:
charles
Message:

#706: reduce memory by 25% by cutting tr_file struct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/transmission.h

    r5014 r5031  
    595595typedef struct tr_file
    596596{
    597     uint64_t length;                /* Length of the file, in bytes */
    598     char     name[MAX_PATH_LENGTH]; /* Path to the file */
    599     int8_t   priority;              /* TR_PRI_HIGH, _NORMAL, or _LOW */
    600     int8_t   dnd;                   /* nonzero if the file shouldn't be downloaded */
    601     int      firstPiece;            /* We need pieces [firstPiece... */
    602     int      lastPiece;             /* ...lastPiece] to dl this file */
    603     uint64_t offset;                /* file begins at the torrent's nth byte */
     597    uint64_t   length;      /* Length of the file, in bytes */
     598    char     * name;        /* Path to the file */
     599    int8_t     priority;    /* TR_PRI_HIGH, _NORMAL, or _LOW */
     600    int8_t     dnd;         /* nonzero if the file shouldn't be downloaded */
     601    int        firstPiece;  /* We need pieces [firstPiece... */
     602    int        lastPiece;   /* ...lastPiece] to dl this file */
     603    uint64_t   offset;      /* file begins at the torrent's nth byte */
    604604}
    605605tr_file;
Note: See TracChangeset for help on using the changeset viewer.