Changeset 13639


Ignore:
Timestamp:
Dec 9, 2012, 9:36:51 PM (9 years ago)
Author:
jordan
Message:

in bencode.c's tr_bencMergeDicts(), call tr_bencDictReserve() so the target dict only has to alloc once to hold all of the source dict's entries.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode.c

    r13631 r13639  
    15531553    assert (tr_bencIsDict (source));
    15541554
     1555    tr_bencDictReserve (target, sourceCount + tr_bencDictSize(target));
     1556
    15551557    for (i=0; i<sourceCount; ++i)
    15561558    {
Note: See TracChangeset for help on using the changeset viewer.