diff options
author | Alan Fitton <ajf@eth0.org.uk> | 2012-01-08 00:52:56 +0000 |
---|---|---|
committer | Alan Fitton <ajf@eth0.org.uk> | 2012-01-08 00:52:56 +0000 |
commit | e1b13312f975f38d3d7437f28299912eff6947e0 (patch) | |
tree | 563d1d7937ce87915e2055d9b2f1dae37d2b9b71 /src/trg-client.c | |
parent | 0a1fa495bd2186c2004fbc0f8977fe52a5f82168 (diff) |
fix the performance problems with the torrent add dialog on torrents with many files/dirs. the parent size updates just walks up parents rather than a full foreach, and the inserts try to use the previous update to speed up finding/creating the directories. I'll probably do something similar to the main files treeview.
Diffstat (limited to 'src/trg-client.c')
-rw-r--r-- | src/trg-client.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/trg-client.c b/src/trg-client.c index cdb018f..42237ff 100644 --- a/src/trg-client.c +++ b/src/trg-client.c @@ -257,9 +257,8 @@ int trg_client_populate_with_settings(TrgClient * tc) #endif priv->url = g_strdup_printf("%s://%s:%d/transmission/rpc", - priv-> - ssl ? HTTPS_URI_PREFIX : HTTP_URI_PREFIX, - host, port); + priv->ssl ? HTTPS_URI_PREFIX : + HTTP_URI_PREFIX, host, port); g_free(host); priv->username = trg_prefs_get_string(prefs, TRG_PREFS_KEY_USERNAME, |