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/rpc-server.c

    r8400 r8414  
    270270                tr_bencDictAddStr( args, "metainfo", b64 );
    271271                tr_bencDictAddBool( args, "paused", paused );
    272                 tr_bencSaveAsJSON( &top, json );
     272                tr_bencSaveAsJSON( &top, json, FALSE );
    273273                tr_rpc_request_exec_json( server->session,
    274274                                          EVBUFFER_DATA( json ),
Note: See TracChangeset for help on using the changeset viewer.