[libtorrent] libtorrent-2.1 released
Brought to you by:
arvidn
|
From: Arvid N. <arv...@gm...> - 2026-07-09 11:23:03
|
Today I'm (finally) releasing libtorrent-2.1.0. The release can be found on github: https://github.com/arvidn/libtorrent/releases/tag/v2.1.0 Documentation on changes to the API are here: https://libtorrent.org/upgrade_to_2.1-ref.html The headline features for this release are 1. webtorrent support Thanks to Paul-Louis Ageneau https://github.com/paullouisageneau, and apologies for this feature having been unreleased for so long. This feature is now enabled by default. The dependencies for webtorrent support are pulled in as submodules in the repository. webtorrent also adds a new dependency on boost-json. Note that the webtorrent support significantly widens the attack surface of libtorrent, if you don't need this feature, it's probably best disabled (webtorrent=off / -Dwebtorrent=OFF) pread_disk_io A new disk I/O backend that uses pwritev and preadv (and windows counterparts). This is hopefully addressing the misstep of transitioning all disk I/O over to memory mapped files.For spinning disks, network mounts or FUSE drives, regular I/O calls should be a lot more efficient. pread_disk_io is now the default. One of the main challenges with the new disk I/O has been to get the multi-threading right. It computes piece hashes on dedicated threads, separate from those making the I/O calls. This lets us advertise and upload pieces before they're flushed to disk, maintaining high throughput. -- Arvid Norberg |