Ignore:
Timestamp:
Jul 7, 2010, 4:31:07 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #3399 "tr_ioTestPiece() can be faster" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/inout.c

    r10904 r10961  
    3131#include "fdlimit.h"
    3232#include "inout.h"
    33 #include "peer-common.h" /* MAX_BLOCK_SIZE */
    3433#include "platform.h"
    3534#include "stats.h"
     
    290289    uint32_t offset = 0;
    291290    tr_bool  success = TRUE;
    292     const size_t buflen = MAX_BLOCK_SIZE;
    293     uint8_t * buffer = tr_new( uint8_t, buflen );
     291    const size_t buflen = 1024 * 256; /* 256 KiB buffer */
     292    void * buffer = tr_valloc( buflen );
    294293    SHA_CTX  sha;
    295294
Note: See TracChangeset for help on using the changeset viewer.