Ignore:
Timestamp:
Dec 15, 2012, 12:01:59 AM (9 years ago)
Author:
jordan
Message:

(trunk, libT) faster JSON parsing for tr_variant. This mostly helps the Qt client, which makes heavy use of the JSON-based RPC calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r13667 r13672  
    337337        {
    338338            tr_variant * d = tr_variantListAddDict (list, 2);
    339             tr_variant * length = tr_variantDictAdd (d, "length");
    340             tr_variant * pathVal = tr_variantDictAdd (d, "path");
     339            tr_variant * length = tr_variantDictAdd (d, "length", 6);
     340            tr_variant * pathVal = tr_variantDictAdd (d, "path", 4);
    341341            getFileInfo (builder->top, &builder->files[i], length, pathVal);
    342342        }
Note: See TracChangeset for help on using the changeset viewer.