1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 02:27:41 +00:00
No description
Find a file
Charles Kerr 40868d1621
perf: faster tr_sessionCountQueueFreeSlots() (#1785)
The previous code had some redundant calculations, e.g. calling 
tr_torrentGetActivity() a couple of times per torrent, once in 
tr_sessionCountQueueFreeSlots() and once in tr_torrentIsStalled(). 
Only one call is necessary.

tr_sessionCountQueueFreeSlots() used to keep iterating through all 
torrents even if the number of free slots had already been decremented 
to zero, even though further iteration does not change the zero return 
value :) This PR checks the return value while looping to prevent this.
2021-09-10 15:15:35 -05:00
.tx
cli Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
cmake Remove autotools-based build system (#1465) 2020-10-13 03:15:19 +03:00
daemon Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
dist/msi Use PowerShell instead of ImageMagick for AppVeyor build 2021-08-24 08:55:53 +03:00
docker/code_style Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
extras add status description to rpc-spec.txt (#1760) 2021-08-27 11:24:57 -05:00
gtk Add Sort by Queue menu item to popup menu (#1040) 2021-08-18 23:15:40 +03:00
libtransmission perf: faster tr_sessionCountQueueFreeSlots() (#1785) 2021-09-10 15:15:35 -05:00
macosx perf: use scrape to know when a private swarm is all-seeds (#1780) 2021-09-09 15:25:30 -05:00
po Sync existing translations with Transifex 2020-11-03 20:26:30 +03:00
qt feat: allow filtering torrents by info hash in qt client (#1763) 2021-08-27 12:58:47 -05:00
release/windows Appveyor CI is failing due to a 302 redirect. (#1697) 2021-05-18 09:41:17 -05:00
tests perf: lookup tables for faster torrent searching. (#1778) 2021-09-09 00:22:29 -05:00
third-party Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
Transmission.xcodeproj Modern Objective-C syntax (#509) 2021-08-07 10:27:56 +03:00
utils Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
web chore(deps): bump path-parse from 1.0.6 to 1.0.7 in /web (#1755) 2021-08-28 18:40:39 -05:00
.clang-format Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
.gitignore feat: web client refresh (#1476) 2020-10-23 20:04:25 -05:00
.gitmodules
appveyor.yml Use PowerShell instead of ImageMagick for AppVeyor build 2021-08-24 08:55:53 +03:00
AUTHORS macOS icon redesigned for Big Sur 2021-03-29 18:05:30 -04:00
CMakeLists.txt Set default Mac target version in CMake to avoid extra warnings 2021-08-17 00:32:32 +03:00
code_style.sh chore: add build/ to clang-tidy exclude list (#1769) 2021-08-28 07:46:25 -05:00
COPYING
docker-compose.yml Switch to clang-format for code formatting, include Mac client 2021-08-16 00:38:29 +03:00
NEWS.md Update NEWS 2021-08-22 19:03:24 -04:00
README.md Add instruction in README.md to config a release build. (#1282) 2021-08-19 00:18:22 +03:00
update-version-h.sh Extract version from CMakeLists.txt in update-version-h.sh 2020-12-17 16:04:29 +03:00

About

Transmission is a fast, easy, and free BitTorrent client. It comes in several flavors:

  • A native macOS GUI application
  • GTK+ and Qt GUI applications for Linux, BSD, etc.
  • A headless daemon for servers and routers
  • A web UI for remote controlling any of the above

Visit https://transmissionbt.com/ for more information.

Command line interface notes

Transmission is fully supported in transmission-remote, the preferred cli client.

Three standalone tools to examine, create, and edit .torrent files exist: transmission-show, transmission-create, and transmission-edit, respectively.

Prior to development of transmission-remote, the standalone client transmission-cli was created. Limited to a single torrent at a time, transmission-cli is deprecated and exists primarily to support older hardware dependent upon it. In almost all instances, transmission-remote should be used instead.

Different distributions may choose to package any or all of these tools in one or more separate packages.

Building

Transmission has an Xcode project file (Transmission.xcodeproj) for building in Xcode.

For a more detailed description, and dependencies, visit: https://github.com/transmission/transmission/wiki

Building a Transmission release from the command line

$ tar xf transmission-2.92.tar.xz
$ cd transmission-2.92
$ mkdir build
$ cd build
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install

Building Transmission from the nightly builds

Download a tarball from https://build.transmissionbt.com/job/trunk-linux/ and follow the steps from the previous section.

If you're new to building programs from source code, this is typically easier than building from Git.

Building Transmission from Git (first time)

$ git clone https://github.com/transmission/transmission Transmission
$ cd Transmission
$ git submodule update --init
$ mkdir build
$ cd build
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install

Building Transmission from Git (updating)

$ cd Transmission/build
$ make clean
$ git pull --rebase --prune
$ git submodule update
$ # Use -DCMAKE_BUILD_TYPE=RelWithDebInfo to build optimized binary.
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
$ make
$ sudo make install

Contributing

Code Style

You would want to setup your editor to make use of the .clang-format file located in the root of this repository and the eslint/prettier rules in web/package.json.

If for some reason you are unwilling or unable to do so, there is a shell script which you could run either directly or via docker-compose:

$ ./code_style.sh
or
$ docker-compose build --pull
$ docker-compose run --rm code_style