1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00
transmission/libtransmission
Jordan Lee 40b2ad63d9 (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.
2011-04-04 05:15:54 +00:00
..
announcer-common.h (trunk libT) remove the tr_session argument from the announce/scrape response callbacks 2011-03-26 12:06:04 +00:00
announcer-http.c (trunk libT) remove the tr_session argument from the announce/scrape response callbacks 2011-03-26 12:06:04 +00:00
announcer-udp.c (trunk libT) strip trailing whitespace 2011-03-28 13:37:46 +00:00
announcer.c small cleanup when determining if two announce URLs differ only by scheme 2011-04-03 03:25:13 +00:00
announcer.h (trunk libT) minor code cleanup in announcer-udp: whitespace & function names 2011-03-26 10:22:25 +00:00
bandwidth.c (trunk libT) use aggregation for the tr_bandwidth objects owned by tr_session and tr_torrent 2011-03-31 14:53:22 +00:00
bandwidth.h (trunk libT) use aggregation for the tr_bandwidth objects owned by tr_session and tr_torrent 2011-03-31 14:53:22 +00:00
bencode-test.c (trunk libT) still fiddling around with #includes -- this time removing unncecessary libT includes from libT .c files 2011-03-25 01:41:57 +00:00
bencode.c (trunk libT) fix "dangerous pointer arithmetic" warning detected by clang static analyzer 2011-03-31 04:24:57 +00:00
bencode.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
bitfield.c (trunk libT) handle situations where we don't know the bitfield's upper bound in advance. This comes up sometimes with magnet links. 2011-03-30 04:14:57 +00:00
bitfield.h (trunk libT) merge tr_bitfieldTestFast() and tr_bitfieldTest() 2011-03-30 04:23:20 +00:00
blocklist-test.c (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
blocklist.c (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
blocklist.h (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
cache.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
cache.h (trunk libT) memory cache should use evbuffers to avoid unnecessary calls to memcpy -- done. 2011-01-29 18:56:53 +00:00
clients-test.c (trunk) copyediting: remove some unneeded #includes, and annotate some needed ones 2011-03-24 21:49:42 +00:00
clients.c (trunk) copyediting: remove some unneeded #includes, and annotate some needed ones 2011-03-24 21:49:42 +00:00
clients.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
completion.c (trunk libT) handle situations where we don't know the bitfield's upper bound in advance. This comes up sometimes with magnet links. 2011-03-30 04:14:57 +00:00
completion.h (trunk libT) handle situations where we don't know the bitfield's upper bound in advance. This comes up sometimes with magnet links. 2011-03-30 04:14:57 +00:00
ConvertUTF.c
ConvertUTF.h
crypto.c (trunk) copyediting: remove some unneeded #includes, and annotate some needed ones 2011-03-24 21:49:42 +00:00
crypto.h (trunk libT) copyediting: '#include "crypto.h"' cleanup 2011-03-25 01:21:31 +00:00
fdlimit.c (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
fdlimit.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
handshake.c (trunk libT) still fiddling around with #includes -- this time removing unncecessary libT includes from libT .c files 2011-03-25 01:41:57 +00:00
handshake.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
history-test.c (trunk libT) #4051 "Use composition for the tr_history fields in tr_peer" -- fixed. 2011-02-23 06:01:16 +00:00
history.c (trunk) it's bad form to #include so many system headers in libtransmission/utils.h... 2011-03-16 18:04:23 +00:00
history.h (trunk libT) #4051 "Use composition for the tr_history fields in tr_peer" -- fixed. 2011-02-23 06:01:16 +00:00
inout.c (trunk libT) tr_torrentGetFileMTime() used to require two stat() calls.. now it only requires one. 2011-04-02 07:36:34 +00:00
inout.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
json-test.c
json.c (trunk libT) since the JSON parser gives us the string's length, we can call tr_strndup() instead of tr_strdup() 2011-04-01 03:07:43 +00:00
json.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
JSON_parser.c (trunk) copyediting: remove some unneeded #includes, and annotate some needed ones 2011-03-24 21:49:42 +00:00
JSON_parser.h
libt.dox
list.c Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
list.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
magnet-test.c
magnet.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
magnet.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
Makefile.am (trunk libT) break the mac build and introduce new crashes. 2011-03-28 16:31:05 +00:00
makemeta.c (trunk) copyediting: remove some unneeded #includes, and annotate some needed ones 2011-03-24 21:49:42 +00:00
makemeta.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
metainfo.c (trunk libT) more malloc pruning. *yawn* 2011-04-01 04:13:51 +00:00
metainfo.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
natpmp.c (trunk libT) copyediting: remove a bunch of seemingly-unneeded network headers in net.[ch]. 2011-03-24 22:57:39 +00:00
natpmp.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
net.c Reinstate including tcp.h in net.c. 2011-04-02 16:43:17 +00:00
net.h (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
peer-common.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
peer-io.c (trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy() 2011-04-04 04:45:41 +00:00
peer-io.h (trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy() 2011-04-04 04:45:41 +00:00
peer-mgr.c (trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy() 2011-04-04 04:45:41 +00:00
peer-mgr.h (trunk libT) don't cache unininteresting peer addresses between sessions 2011-03-29 15:23:54 +00:00
peer-msgs-test.c (trunk libT) copyediting: yes, removing more unnecessary #includes 2011-03-25 06:20:12 +00:00
peer-msgs.c (trunk libT) avoid an unnecessary malloc() + free() call when we finish downloading a block. 2011-04-04 05:15:54 +00:00
peer-msgs.h (trunk libT) copyediting: yes, removing more unnecessary #includes 2011-03-25 06:20:12 +00:00
platform.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
platform.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
port-forwarding.c (trunk libT) still fiddling around with #includes -- this time removing unncecessary libT includes from libT .c files 2011-03-25 01:41:57 +00:00
port-forwarding.h (trunk libT) copyediting: clean up the "#include <event2/*>" directives in libtransmission's header files 2011-03-24 22:45:04 +00:00
ptrarray.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
ptrarray.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
resume.c (trunk libT) copyediting in resume.c 2011-04-01 03:13:44 +00:00
resume.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
rpc-server.c (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
rpc-server.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
rpc-test.c
rpcimpl.c (trunk libT) break the mac build and introduce new crashes. 2011-03-28 16:31:05 +00:00
rpcimpl.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
session.c (trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy() 2011-04-04 04:45:41 +00:00
session.h (trunk libT) when reading piece data in from a socket, avoid two unnecessary calls to memcpy() 2011-04-04 04:45:41 +00:00
stats.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
stats.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
test-peer-id.c (trunk libT) Add an enumeration for the peer id length. Use that enum for the peer_id fields in tr_session and tr_torrent. 2011-03-10 12:35:23 +00:00
torrent-ctor.c (trunk) fix a handful of small memory leaks that valgrind found. 2011-03-25 17:42:47 +00:00
torrent-magnet.c (trunk libT) copyediting: '#include "crypto.h"' cleanup 2011-03-25 01:21:31 +00:00
torrent-magnet.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
torrent.c (trunk libT) tr_torrentGetFileMTime() used to require two stat() calls.. now it only requires one. 2011-04-02 07:36:34 +00:00
torrent.h (trunk libT) tr_torrentGetFileMTime() used to require two stat() calls.. now it only requires one. 2011-04-02 07:36:34 +00:00
tr-dht.c (trunk libT) fix file descriptor leak in tr-dht.c 2011-03-31 03:37:24 +00:00
tr-dht.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
tr-getopt.c Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
tr-getopt.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
tr-lpd.c (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
tr-lpd.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
tr-udp.c (trunk libT) fix minor dead store detected by clang static analyzer 2011-03-31 04:03:07 +00:00
tr-udp.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
tr-utp.c (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
tr-utp.h add configure script switch to enable/disable utp 2011-02-18 00:45:44 +00:00
transmission.h (trunk libT) save 48 bytes per tr_torrent object. whoo! 2011-03-31 16:08:31 +00:00
trevent.c (trunk libT) still fiddling around with #includes -- this time removing unncecessary libT includes from libT .c files 2011-03-25 01:41:57 +00:00
trevent.h (trunk libT) copyediting: yes, removing more unnecessary #includes 2011-03-25 06:20:12 +00:00
upnp.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
upnp.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
utils-test.c (trunk libT) break the mac build and introduce new crashes. 2011-03-28 16:31:05 +00:00
utils.c (trunk libT) avoid an unnecessary malloc/free in tr_urlIsValidTracker() and tr_urlIsValid() 2011-04-01 03:23:55 +00:00
utils.h (trunk libT) tr_set_func is only used in one place, so make it a private function there instead of leaving it public in utils.h 2011-03-22 23:49:29 +00:00
verify.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
verify.h Update the copyright year in the source code comments. 2011-01-19 13:48:47 +00:00
web.c (trunk libT) API cleanup of the tr_address functions to make them more consistent. 2011-03-25 05:34:26 +00:00
web.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
webseed.c (trunk libT) use aggregation for the tr_bandwidth objects owned by tr_session and tr_torrent 2011-03-31 14:53:22 +00:00
webseed.h (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00
wildmat.c (trunk) #4138 "use stdbool.h instead of tr_bool" -- done. 2011-03-22 15:19:54 +00:00