Ignore:
Timestamp:
May 16, 2009, 5:51:52 AM (13 years ago)
Author:
charles
Message:

(trunk) add an option to the JSON generator to disable the human-readable indentations. Keep indenting the data files such as settings.json, but don't indent the messages used for RPC. This cuts the cost of deflate()ing those RPC messages by about 80%...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode-test.c

    r8158 r8414  
    325325
    326326    tr_bencLoad( benc_str, strlen( benc_str ), &top, NULL );
    327     serialized = tr_bencSaveAsJSON( &top, buf );
     327    serialized = tr_bencSaveAsJSON( &top, buf, TRUE );
    328328    stripWhitespace( serialized );
    329329#if 0
Note: See TracChangeset for help on using the changeset viewer.