]> granicus.if.org Git - transmission/log
transmission
13 years ago(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessar...
Jordan Lee [Wed, 27 Apr 2011 20:52:07 +0000 (20:52 +0000)]
(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessary malloc+memcpy+free when building the URL for a webseed download request

13 years ago(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessar...
Jordan Lee [Wed, 27 Apr 2011 20:50:43 +0000 (20:50 +0000)]
(trunk libT) heap pruning: using the same mechanism as in r12388, avoid an unnecessary malloc+memcpy+free when TR_CURL_VERBOSE is logging HTTP messages

13 years ago(trunk libT) heap pruning: avoid unnecessary malloc+memcpy+frees in announcer.
Jordan Lee [Wed, 27 Apr 2011 20:41:47 +0000 (20:41 +0000)]
(trunk libT) heap pruning: avoid unnecessary malloc+memcpy+frees in announcer.

1. when creating announce URLs in announcer-http.c
2. when creating scrape URLs in announcer-http.c
3. when deep-logging what announces are in a torrent's queue in announcer.c

13 years ago(trunk libT) heap pruning: lazy-allocate the array in peer-mgr.c's getPeersToClose().
Jordan Lee [Wed, 27 Apr 2011 19:06:06 +0000 (19:06 +0000)]
(trunk libT) heap pruning: lazy-allocate the array in peer-mgr.c's getPeersToClose().

13 years ago(trunk libT) more heap pruning: avoid an unnecessary evbuffer_new() + evbuffer_free...
Jordan Lee [Wed, 27 Apr 2011 17:52:28 +0000 (17:52 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary evbuffer_new() + evbuffer_free() in tr_peerIoWriteBytes()

13 years ago(trunk libT) constify the tr_scrape_request argument to scrape_request_delegate().
Jordan Lee [Wed, 27 Apr 2011 17:30:53 +0000 (17:30 +0000)]
(trunk libT) constify the tr_scrape_request argument to scrape_request_delegate().

13 years ago(trunk libT) more heap pruning: build the "cookie_filename" field once when creating...
Jordan Lee [Wed, 27 Apr 2011 17:02:18 +0000 (17:02 +0000)]
(trunk libT) more heap pruning: build the "cookie_filename" field once when creating the web thread, instead of each time a new tr_web_task is added.

13 years ago(trunk libT) use tr_malloc() instead of malloc() in tr_loadFile() and in the fallback...
Jordan Lee [Wed, 27 Apr 2011 16:12:17 +0000 (16:12 +0000)]
(trunk libT) use tr_malloc() instead of malloc() in tr_loadFile() and in the fallback code for tr_valloc()

13 years ago(trunk libT) #4209 "Shortcut UDP tracker test" -- prioritize the UDP handler function...
Jordan Lee [Wed, 27 Apr 2011 05:29:05 +0000 (05:29 +0000)]
(trunk libT) #4209 "Shortcut UDP tracker test" -- prioritize the UDP handler functions based on frequency (uTP, DHT, UTP tracker) as outlined by jch in comment:5. Also, don't call the uTP or DHT handlers when uTP or DHT is disabled in the system preferences.

To avoid the function call overhead described by jch, instead of calling tr_sessionIsUTPEnabled() and tr_sessionIsDHTEnabled(), we test for WITH_UTP to be defined and test the tr_session.isUTPEnabled and tr_session.isDHTEnabled flags directly.

13 years ago(trunk libT) #4209 "Shortcut UDP tracker test" -- the goal of #4209 is to minimize...
Jordan Lee [Wed, 27 Apr 2011 05:03:10 +0000 (05:03 +0000)]
(trunk libT) #4209 "Shortcut UDP tracker test" -- the goal of #4209 is to minimize the cost of the UDP event callback function, so apply the heap pruning eye to that by removing an unnecessary malloc/free call there.

Previously we allocated a 4096 character buffer each time; now we allocate it on the stack. It seems all the distros and OS flavors that Transmission runs on have multi-MB default stack sizes, so a hardwired 4K array should be safe.

13 years ago#4206 "RPC Documentation missing defualt value for 'torrent-set-location' argument...
Jordan Lee [Mon, 25 Apr 2011 21:11:08 +0000 (21:11 +0000)]
#4206 "RPC Documentation missing defualt value for 'torrent-set-location' argument 'move'" -- fixed.

13 years ago(trunk libT) #4204 "Availability is the same as the amount downloaded when there...
Jordan Lee [Sun, 24 Apr 2011 22:56:42 +0000 (22:56 +0000)]
(trunk libT) #4204 "Availability is the same as the amount downloaded when there are no seeders" -- possible fix

It looks like we had the wrong test on the replication count array size.

13 years agoOptimise UDP dispatch (fixes #4209).
Juliusz Chroboczek [Sun, 24 Apr 2011 19:12:28 +0000 (19:12 +0000)]
Optimise UDP dispatch (fixes #4209).

Make quick inline tests for the DHT and UDP tracker protocols, which
avoids calling tau_handle_message for each µTP packet.

13 years ago(trunk daemon) #2338 "Add uTP support" -- added er13's patch from comment:115 to...
Jordan Lee [Wed, 20 Apr 2011 23:17:10 +0000 (23:17 +0000)]
(trunk daemon) #2338 "Add uTP support" -- added er13's patch from comment:115 to add uTP enable/disable commands to transmission-remote. Thanks er13!

13 years ago(trunk utils) add '-o' description to transmission-create's manpage.
Jordan Lee [Wed, 20 Apr 2011 19:18:28 +0000 (19:18 +0000)]
(trunk utils) add '-o' description to transmission-create's manpage.

13 years ago(trunk gtk) very minor tweak in deciding which rows to update in the torrent model.
Jordan Lee [Wed, 20 Apr 2011 01:16:16 +0000 (01:16 +0000)]
(trunk gtk) very minor tweak in deciding which rows to update in the torrent model.

Since we only display speed to two decimal places, we don't need to compare previous and current torrent speed with more precision than that.

13 years ago(trunk) revert r12372 based on feedback from er13: "Many embedded systems use uClibc...
Jordan Lee [Tue, 19 Apr 2011 19:22:55 +0000 (19:22 +0000)]
(trunk) revert r12372 based on feedback from er13: "Many embedded systems use uClibc++ (and not the gcc' libstdc++) as an implementation of Standard C++ Library. r12372 breaks the compilation of transmission for such systems."

13 years ago(trunk libt) #4164 "__FD_SETSIZE impact on open-file-limit and peer-limit-global...
Jordan Lee [Tue, 19 Apr 2011 15:23:04 +0000 (15:23 +0000)]
(trunk libt) #4164 "__FD_SETSIZE impact on open-file-limit and peer-limit-global" -- commit patch by romanr to take FD_SETSIZE into account before calling setrlimit()

13 years ago(trunk) fix "__gxx_personality_v0" when compiling Transmission on some versions of...
Jordan Lee [Tue, 19 Apr 2011 14:40:46 +0000 (14:40 +0000)]
(trunk) fix "__gxx_personality_v0" when compiling Transmission on some versions of gcc/g++

The problem is coming from gcc getting confused by having a C program (Transmission) link against a C++ library (libutp). In gcc, C++ code has an implicit dependency on libstdc++ for the __gxx_personality_v0 function.

More info @ http://stackoverflow.com/questions/329059/what-is-gxx-personality-v0-for

13 years agobump to 2.30 beta 3 2.30b3
Mitchell Livingston [Sun, 17 Apr 2011 20:01:46 +0000 (20:01 +0000)]
bump to 2.30 beta 3

13 years agotweak to the reveal button in the inspector in the French localization
Mitchell Livingston [Sun, 17 Apr 2011 15:59:27 +0000 (15:59 +0000)]
tweak to the reveal button in the inspector in the French localization

13 years agoupdate Dutch localization for 2.30
Mitchell Livingston [Sun, 17 Apr 2011 15:58:51 +0000 (15:58 +0000)]
update Dutch localization for 2.30

13 years ago(trunk libT) more heap pruning: don't allocate peer-msgs' incoming block buffer until...
Jordan Lee [Sun, 17 Apr 2011 06:13:22 +0000 (06:13 +0000)]
(trunk libT) more heap pruning: don't allocate peer-msgs' incoming block buffer until it's needed. If we're seeding, we won't need it.

13 years ago(trunk libT) heap and event pruning: don't create evtimers for periodic pex messages...
Jordan Lee [Sun, 17 Apr 2011 05:55:46 +0000 (05:55 +0000)]
(trunk libT) heap and event pruning: don't create evtimers for periodic pex messages if the torrent doesn't allow pex (such as, if it's on a private tracker).

Previously, we unconditionally created the evtimer, and then checked each time to see if pex was allowed.

13 years ago(trunk libT) more heap pruning: use composition rather than aggregation for the tr_cr...
Jordan Lee [Sun, 17 Apr 2011 05:22:50 +0000 (05:22 +0000)]
(trunk libT) more heap pruning: use composition rather than aggregation for the tr_crypto object owned by tr_peerIo.

13 years ago(trunk libT) use FD_SETSIZE instead of __FD_SETSIZE
Jordan Lee [Sat, 16 Apr 2011 22:41:14 +0000 (22:41 +0000)]
(trunk libT) use FD_SETSIZE instead of __FD_SETSIZE

13 years ago(trunk libT) #4165 "__FD_SETSIZE impact on open-file-limit and peer-limit-global...
Jordan Lee [Sat, 16 Apr 2011 22:33:29 +0000 (22:33 +0000)]
(trunk libT) #4165 "__FD_SETSIZE impact on open-file-limit and peer-limit-global" -- add safety guard in the file cache to prevent too many open files.

13 years ago#4104 Drop Mac PPC support
Mitchell Livingston [Sat, 16 Apr 2011 22:10:24 +0000 (22:10 +0000)]
#4104 Drop Mac PPC support

13 years ago(trunk libT) changes to the bandwidth allocator's phaseOne step as suggested by Vince...
Jordan Lee [Sat, 16 Apr 2011 21:46:32 +0000 (21:46 +0000)]
(trunk libT) changes to the bandwidth allocator's phaseOne step as suggested by Vincent in #2338 comment:108

13 years ago(trunk qt) sync Qt client with r12355
Jordan Lee [Fri, 15 Apr 2011 21:46:26 +0000 (21:46 +0000)]
(trunk qt) sync Qt client with r12355

13 years agoIgnore configuration files from Xcode 4.
Mitchell Livingston [Thu, 14 Apr 2011 00:11:23 +0000 (00:11 +0000)]
Ignore configuration files from Xcode 4.

13 years ago(trunk gtk) more heap pruning, in tr_core
Jordan Lee [Wed, 13 Apr 2011 22:16:50 +0000 (22:16 +0000)]
(trunk gtk) more heap pruning, in tr_core

Tweak how we loop through the torrents in the model, again to avoid unnecessary GtkTreePath temporaries.

13 years ago(trunk gtk) Avoid unnecessary GtkComboBox queries.
Jordan Lee [Wed, 13 Apr 2011 22:04:31 +0000 (22:04 +0000)]
(trunk gtk) Avoid unnecessary GtkComboBox queries.

Instead of calling gtk_combo_box_get_active_iter() on the filterbar's two comboboxes in every periodic update, keep the state information in a local struct and update it when the selection changes. That way the filter code doesn't even need to know about the GtkComboBox or the GtkTreeModel.

13 years ago(trunk gtk) more heap pruning: minor GtkTreeModel changes
Jordan Lee [Wed, 13 Apr 2011 22:00:55 +0000 (22:00 +0000)]
(trunk gtk) more heap pruning: minor GtkTreeModel changes

Use gtk_tree_model_iter_nth_child() instead of gtk_tree_model_get_iter_first() to avoid an unnecessary gtk_tree_path object being created and destroyed. This is a very minor change and I'm not sure how useful it really is, but it doesn't hurt.

13 years ago(trunk gtk) more heap pruning:
Jordan Lee [Wed, 13 Apr 2011 06:18:30 +0000 (06:18 +0000)]
(trunk gtk) more heap pruning:

querying gconf2 each time the curl callack function is called is expensive, so query it once -- then again later, if the proxy settings change -- and remember the values in a local struct.

13 years ago(trunk gtk) transmission-gtk requires GTK+ 2.8 or higher, so remove the `#if GTK_CHEC...
Jordan Lee [Tue, 12 Apr 2011 11:13:41 +0000 (11:13 +0000)]
(trunk gtk) transmission-gtk requires GTK+ 2.8 or higher, so remove the `#if GTK_CHECK_VERSION(2,8,0)' checks because we already know the answer.

13 years ago(trunk gtk) more heap pruning: give DetailsImpl an internal GString buffer so that...
Jordan Lee [Tue, 12 Apr 2011 10:51:52 +0000 (10:51 +0000)]
(trunk gtk) more heap pruning: give DetailsImpl an internal GString buffer so that it doesn't have to create and free so many temporary strings

13 years ago(trunk gtk) more heap pruning: give torrent-cell-renderer an internal GString buffer...
Jordan Lee [Tue, 12 Apr 2011 10:04:05 +0000 (10:04 +0000)]
(trunk gtk) more heap pruning: give torrent-cell-renderer an internal GString buffer so that we don't have to create & free so many short-term strings

13 years agoupdate French localization for 2.30
Mitchell Livingston [Mon, 11 Apr 2011 22:21:55 +0000 (22:21 +0000)]
update French localization for 2.30

13 years ago(trunk libT) fix 2.30b1 memory corruption bug when editing trackers.
Jordan Lee [Mon, 11 Apr 2011 19:44:16 +0000 (19:44 +0000)]
(trunk libT) fix 2.30b1 memory corruption bug when editing trackers.

The problem was that the new number of trackers was not being kept and the old count was retained. So if the count changed, tr_torrentTrackers() could return dangling pointers to the caller.

13 years ago(trunk gtk) minor janitorial: const correctness in tr-core's compare_by_name()
Jordan Lee [Mon, 11 Apr 2011 16:27:41 +0000 (16:27 +0000)]
(trunk gtk) minor janitorial: const correctness in tr-core's compare_by_name()

13 years ago#4182 Remember filter search text between runs
Mitchell Livingston [Mon, 11 Apr 2011 02:44:05 +0000 (02:44 +0000)]
#4182 Remember filter search text between runs

13 years ago#4175 fix typo
Mitchell Livingston [Sun, 10 Apr 2011 16:26:55 +0000 (16:26 +0000)]
#4175 fix typo

13 years ago(trunk libT) #4175 "very bizarre and unwieldly logfile in 2.30b2" -- fixed.
Jordan Lee [Sun, 10 Apr 2011 14:15:52 +0000 (14:15 +0000)]
(trunk libT) #4175 "very bizarre and unwieldly logfile in 2.30b2" -- fixed.

13 years ago6789ABCDE
Jordan Lee [Sun, 10 Apr 2011 05:27:14 +0000 (05:27 +0000)]
6789ABCDE

13 years ago(trunk libT) remove unneeded assert()ion
Jordan Lee [Sun, 10 Apr 2011 05:22:18 +0000 (05:22 +0000)]
(trunk libT) remove unneeded assert()ion

13 years ago(trunk libT) use a better data struct for the tr_datatype list in peer-io
Jordan Lee [Sun, 10 Apr 2011 05:21:51 +0000 (05:21 +0000)]
(trunk libT) use a better data struct for the tr_datatype list in peer-io

13 years ago(trunk web) #3820 "web ui flicking to selection" -- apply test patch suggested by fx
Jordan Lee [Sun, 10 Apr 2011 04:30:20 +0000 (04:30 +0000)]
(trunk web) #3820 "web ui flicking to selection" -- apply test patch suggested by fx

13 years ago(trunk libT) #4175 "very bizarre and unwieldy logfile in 2.30b2" -- another test...
Jordan Lee [Sun, 10 Apr 2011 03:57:37 +0000 (03:57 +0000)]
(trunk libT) #4175 "very bizarre and unwieldy logfile in 2.30b2" -- another test commit for gunzip :)

13 years ago(trunk libT) #4175 "bizarre and unwieldly logfile in 2.30b2" -- possible fix for...
Jordan Lee [Sun, 10 Apr 2011 00:05:18 +0000 (00:05 +0000)]
(trunk libT) #4175 "bizarre and unwieldly logfile in 2.30b2" -- possible fix for gunzip to test

13 years agobump version number to 2.30b2 2.30b2
Mitchell Livingston [Sat, 9 Apr 2011 14:38:48 +0000 (14:38 +0000)]
bump version number to 2.30b2

13 years ago(trunk libT) #4173 "crashing with r12315 in Debian" -- apply patch from comment:8...
Jordan Lee [Sat, 9 Apr 2011 14:36:33 +0000 (14:36 +0000)]
(trunk libT) #4173 "crashing with r12315 in Debian" -- apply patch from comment:8 for testing in 2.30b2

13 years agocatch invalid addresses when loading tracker favicons
Mitchell Livingston [Thu, 7 Apr 2011 23:29:05 +0000 (23:29 +0000)]
catch invalid addresses when loading tracker favicons

13 years ago(trunk libT) in peer-mgr's closeBadPeers() function, don't bother doing any of the...
Jordan Lee [Thu, 7 Apr 2011 20:15:49 +0000 (20:15 +0000)]
(trunk libT) in peer-mgr's closeBadPeers() function, don't bother doing any of the setup/teardown calculations if the peer array is empty.

13 years ago(trunk libT) use get_next_scrape_time() inside the scrape error handler.
Jordan Lee [Thu, 7 Apr 2011 20:00:26 +0000 (20:00 +0000)]
(trunk libT) use get_next_scrape_time() inside the scrape error handler.

get_next_scrape_time() was introduced in r12297. The rationale is that by rounding all scrape times to their nearest 10th second, they will tend to occur in batches and improve multiscrape.

13 years ago(trunk libT) #3931 "'Announce is Queued' but torrent doesn't announce itself to track...
Jordan Lee [Thu, 7 Apr 2011 19:54:30 +0000 (19:54 +0000)]
(trunk libT) #3931 "'Announce is Queued' but torrent doesn't announce itself to trackers" -- add more debugging information for the next announce interval when an announce error is encountered, as requested by Sardok in comment:70 of #3931

13 years ago(trunk libT) #4173 "Crashing with r12315 in Debian" -- possible fix?
Jordan Lee [Thu, 7 Apr 2011 06:56:31 +0000 (06:56 +0000)]
(trunk libT) #4173 "Crashing with r12315 in Debian" -- possible fix?

13 years ago(trunk libT) trivial commit fixing typo in the comments from r12297
Jordan Lee [Thu, 7 Apr 2011 06:54:03 +0000 (06:54 +0000)]
(trunk libT) trivial commit fixing typo in the comments from r12297

13 years ago(trunk gtk) more heap pruning: use a GStringChunk for the collated torrent names...
Jordan Lee [Thu, 7 Apr 2011 04:29:37 +0000 (04:29 +0000)]
(trunk gtk) more heap pruning: use a GStringChunk for the collated torrent names in tr-core.c

13 years agoadd an extra check when generating status strings in a TorrentCell
Mitchell Livingston [Thu, 7 Apr 2011 00:56:28 +0000 (00:56 +0000)]
add an extra check when generating status strings in a TorrentCell

13 years ago(trunk libT) more heap pruning: avoid four unnecessary malloc() + free() calls per...
Jordan Lee [Wed, 6 Apr 2011 23:27:11 +0000 (23:27 +0000)]
(trunk libT) more heap pruning: avoid four unnecessary malloc() + free() calls per tr_peer.

This commit also changes tr_recentHistory from being a general-purpose tool to being a little more hardcoded for the only purpose it's used, in tr_peerMgr. If its files (history.[ch]) don't find any other "customers" in libtransmission, eventually it should be demoted to being a private helper class inside of peer-mgr.c and have the history.[ch] files removed from the build.

13 years agoupdate European Portuguese localization for 2.3
Mitchell Livingston [Wed, 6 Apr 2011 22:06:53 +0000 (22:06 +0000)]
update European Portuguese localization for 2.3

13 years ago(trunk libT) remove an assertion from bitfield that doesn't always need to be true
Jordan Lee [Wed, 6 Apr 2011 04:55:57 +0000 (04:55 +0000)]
(trunk libT) remove an assertion from bitfield that doesn't always need to be true

13 years agowhen removing trackers, handle hidden duplicates
Mitchell Livingston [Tue, 5 Apr 2011 23:03:33 +0000 (23:03 +0000)]
when removing trackers, handle hidden duplicates

13 years ago(trunk libT) fix ABR error when parsing a URL with no path and no trailing slash...
Jordan Lee [Tue, 5 Apr 2011 22:21:18 +0000 (22:21 +0000)]
(trunk libT) fix ABR error when parsing a URL with no path and no trailing slash after the host. Error reported by livings124

13 years ago(trunk libT) more heap pruning: avoid an unnecessary malloc() + free() when reading...
Jordan Lee [Tue, 5 Apr 2011 21:14:44 +0000 (21:14 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary malloc() + free() when reading PadD during an outbound encrypted handshake

13 years ago(trunk libT) more heap pruning: avoid an unnecessary malloc() + strcmp() + free(...
Jordan Lee [Tue, 5 Apr 2011 18:16:21 +0000 (18:16 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary malloc() + strcmp() + free() when parsing the initial handshake string from a peer

13 years ago(trunk gtk) removed the unused MC_NAME column from the torrent GtkListStore.
Jordan Lee [Tue, 5 Apr 2011 17:00:38 +0000 (17:00 +0000)]
(trunk gtk) removed the unused MC_NAME column from the torrent GtkListStore.

13 years ago(trunk libT) when processing errors in peer-io.c's event_read_cb() and tr_peerIoTryRe...
Jordan Lee [Tue, 5 Apr 2011 16:46:13 +0000 (16:46 +0000)]
(trunk libT) when processing errors in peer-io.c's event_read_cb() and tr_peerIoTryRead() functions, don't call tr_net_strerror() unless logging is turned on s.t. the string will be used.

13 years ago(trunk libT) when processing an error in tr_peerIoTryWrite(), don't call tr_net_strer...
Jordan Lee [Tue, 5 Apr 2011 16:34:49 +0000 (16:34 +0000)]
(trunk libT) when processing an error in tr_peerIoTryWrite(), don't call tr_net_strerror() unless logging is turned on s.t. the string will be used.

13 years ago(trunk gtk) use GQuarks instead of strings for keys in tr-icon and tr-window
Jordan Lee [Tue, 5 Apr 2011 16:16:06 +0000 (16:16 +0000)]
(trunk gtk) use GQuarks instead of strings for keys in tr-icon and tr-window

13 years ago(trunk gtk) use GQuarks instead of strings for keys in the filterbar's key/value...
Jordan Lee [Tue, 5 Apr 2011 15:59:41 +0000 (15:59 +0000)]
(trunk gtk) use GQuarks instead of strings for keys in the filterbar's key/value pairs

13 years ago(trunk gtk) more heap pruning: in the main window's torrent list, only update the...
Jordan Lee [Tue, 5 Apr 2011 15:41:51 +0000 (15:41 +0000)]
(trunk gtk) more heap pruning: in the main window's torrent list, only update the case-insensitive "collated name" of a torrent when the torrent's metadata changes (such as when a magnet link's metadata finishes downloading).

13 years ago(trunk libT) more heap pruning: use a hash, rather than an allocated string in tr...
Jordan Lee [Tue, 5 Apr 2011 01:36:37 +0000 (01:36 +0000)]
(trunk libT) more heap pruning: use a hash, rather than an allocated string in tr-core when watching for a torrent's tracker list to change

13 years ago(trunk libT) oops, r12313 committed the wrong version of list.c
Jordan Lee [Tue, 5 Apr 2011 00:59:49 +0000 (00:59 +0000)]
(trunk libT) oops, r12313 committed the wrong version of list.c

13 years ago(trunk libT) keep a pool of reusable tr_list nodes
Jordan Lee [Tue, 5 Apr 2011 00:56:56 +0000 (00:56 +0000)]
(trunk libT) keep a pool of reusable tr_list nodes

13 years ago(trunk libT) Use tr_strndup() instead of tr_strdup() in tr_urlParse() to avoid a...
Jordan Lee [Tue, 5 Apr 2011 00:55:09 +0000 (00:55 +0000)]
(trunk libT) Use tr_strndup() instead of tr_strdup() in tr_urlParse() to avoid a couple of strlen() calls

13 years ago(trunk libT) use alloca() for allocating the block array in updateBlockRequests()
Jordan Lee [Tue, 5 Apr 2011 00:53:57 +0000 (00:53 +0000)]
(trunk libT) use alloca() for allocating the block array in updateBlockRequests()

13 years ago(trunk libT) #4165 "crash on startup introduced in r12262" -- experimental commit
Jordan Lee [Tue, 5 Apr 2011 00:29:42 +0000 (00:29 +0000)]
(trunk libT) #4165 "crash on startup introduced in r12262" -- experimental commit

13 years ago(trunk libT) remove redundant assert()s
Jordan Lee [Tue, 5 Apr 2011 00:26:31 +0000 (00:26 +0000)]
(trunk libT) remove redundant assert()s

13 years ago(trunk libT) remove unnecessary memmove()s from rechokeDownloads()
Jordan Lee [Tue, 5 Apr 2011 00:24:25 +0000 (00:24 +0000)]
(trunk libT) remove unnecessary memmove()s from rechokeDownloads()

13 years agoremove unneeded include
Jordan Lee [Mon, 4 Apr 2011 21:42:04 +0000 (21:42 +0000)]
remove unneeded include

13 years ago(trunk gtk) more heap pruning: avoid unnecessary malloc() + free() calls in gtr_get_h...
Jordan Lee [Mon, 4 Apr 2011 16:54:09 +0000 (16:54 +0000)]
(trunk gtk) more heap pruning: avoid unnecessary malloc() + free() calls in gtr_get_host_from_url()

13 years ago(trunk libT) more heap pruning: avoid an unnecessary malloc() + free() when encryptin...
Jordan Lee [Mon, 4 Apr 2011 16:53:15 +0000 (16:53 +0000)]
(trunk libT) more heap pruning: avoid an unnecessary malloc() + free() when encrypting outbound messages

13 years ago(trunk libT) avoid an unnecessary malloc() + free() call when we finish downloading...
Jordan Lee [Mon, 4 Apr 2011 05:15:54 +0000 (05:15 +0000)]
(trunk libT) avoid an unnecessary malloc() + free() call when we finish downloading a block.

Pre-libevent2, this free() was useful in helping keep the peer's incoming piece data buffer from growing too large because that could be a significant amount of wasted space given enough peers. However now that we're using the libevent2 code, that piece data buffer gets handed off to the block cache, so most of the time we're freeing an evbuffer that doesn't have any inernal chains allocated anyway.

13 years ago(trunk libT) when reading piece data in from a socket, avoid two unnecessary calls...
Jordan Lee [Mon, 4 Apr 2011 04:45:41 +0000 (04:45 +0000)]
(trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy()

13 years agosmall cleanup when determining if two announce URLs differ only by scheme
Mitchell Livingston [Sun, 3 Apr 2011 03:25:13 +0000 (03:25 +0000)]
small cleanup when determining if two announce URLs differ only by scheme

13 years ago(trunk libT) fix UMR bug reported by wereHamster
Jordan Lee [Sat, 2 Apr 2011 23:33:51 +0000 (23:33 +0000)]
(trunk libT) fix UMR bug reported by wereHamster

13 years agoReinstate including tcp.h in net.c.
Juliusz Chroboczek [Sat, 2 Apr 2011 16:43:17 +0000 (16:43 +0000)]
Reinstate including tcp.h in net.c.

Removed in r12225, this broke netSetCongestionControl.

13 years ago(trunk libT) don't bother calling rechokeUploads() and rechokeDownloads() on torrents...
Jordan Lee [Sat, 2 Apr 2011 08:35:47 +0000 (08:35 +0000)]
(trunk libT) don't bother calling rechokeUploads() and rechokeDownloads() on torrents which have no peers.

13 years ago(trunk libT) #4138 "use stdbool.h instead of tr_bool" -- fix watch.c error reported...
Jordan Lee [Sat, 2 Apr 2011 07:46:37 +0000 (07:46 +0000)]
(trunk libT) #4138 "use stdbool.h instead of tr_bool" -- fix watch.c error reported by zebulon501 in trac. :)

13 years ago(trunk libT) better multiscrape
Jordan Lee [Sat, 2 Apr 2011 07:44:19 +0000 (07:44 +0000)]
(trunk libT) better multiscrape

13 years ago(trunk libT) tr_torrentGetFileMTime() used to require two stat() calls.. now it only...
Jordan Lee [Sat, 2 Apr 2011 07:36:34 +0000 (07:36 +0000)]
(trunk libT) tr_torrentGetFileMTime() used to require two stat() calls.. now it only requires one.

13 years ago(trunk libT) tr_torrentFindFile2(): avoid an unnecessary malloc() + free() if the...
Jordan Lee [Sat, 2 Apr 2011 03:31:41 +0000 (03:31 +0000)]
(trunk libT) tr_torrentFindFile2(): avoid an unnecessary malloc() + free() if the file we're looking for is complete and doesn't have a ".part" suffix

13 years ago(trunk libT) simplify tr_torrent's hasAnyLocalData() to be more readable, and also...
Jordan Lee [Fri, 1 Apr 2011 04:33:35 +0000 (04:33 +0000)]
(trunk libT) simplify tr_torrent's hasAnyLocalData() to be more readable, and also to avoid yet another unnecessary malloc() and free()

13 years ago(trunk libT) more malloc pruning. *yawn*
Jordan Lee [Fri, 1 Apr 2011 04:13:51 +0000 (04:13 +0000)]
(trunk libT) more malloc pruning. *yawn*

tr_metainfoGetBasename(): avoid an unnecessary malloc() + free()
getannounce(): avoid an unnecessary malloc() + free() per each tracker

13 years ago(trunk libT) avoid an unnecessary malloc/free in tr_urlIsValidTracker() and tr_urlIsV...
Jordan Lee [Fri, 1 Apr 2011 03:23:55 +0000 (03:23 +0000)]
(trunk libT) avoid an unnecessary malloc/free in tr_urlIsValidTracker() and tr_urlIsValid()

13 years ago(trunk libT) copyediting in resume.c
Jordan Lee [Fri, 1 Apr 2011 03:13:44 +0000 (03:13 +0000)]
(trunk libT) copyediting in resume.c

13 years ago(trunk libT) streamline parsing the metainfo's file list
Jordan Lee [Fri, 1 Apr 2011 03:09:24 +0000 (03:09 +0000)]
(trunk libT) streamline parsing the metainfo's file list

13 years ago(trunk libT) since the JSON parser gives us the string's length, we can call tr_strnd...
Jordan Lee [Fri, 1 Apr 2011 03:07:43 +0000 (03:07 +0000)]
(trunk libT) since the JSON parser gives us the string's length, we can call tr_strndup() instead of tr_strdup()