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/resume.c

    r13667 r13672  
    6767#define KEY_PROGRESS_BITFIELD  "bitfield"
    6868#define KEY_PROGRESS_BLOCKS    "blocks"
     69#define KEY_PROGRESS_BLOCKS_STRLEN 6
    6970#define KEY_PROGRESS_HAVE      "have"
    7071
     
    481482    /* add the blocks bitfield */
    482483    bitfieldToBenc (&tor->completion.blockBitfield,
    483                     tr_variantDictAdd (prog, KEY_PROGRESS_BLOCKS));
     484                    tr_variantDictAdd (prog, KEY_PROGRESS_BLOCKS, KEY_PROGRESS_BLOCKS_STRLEN));
    484485}
    485486
Note: See TracChangeset for help on using the changeset viewer.