Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
1e8903a
Some big changes to improve performance, readbility and overall enhan…
Power2All Aug 30, 2025
e98e282
Another chunk of performance improvements. Will go through all these …
Power2All Aug 30, 2025
694a702
Applying more performance improvements
Power2All Aug 30, 2025
f84a17e
Apply fixes, improvements and clippy enhancements
Power2All Aug 30, 2025
9f15c59
Shutdown was not done correctly
Power2All Aug 30, 2025
b14cf3a
Trying to improve responsiveness by batch sending data
Power2All Aug 31, 2025
c51a70e
Trying to improve throughput
Power2All Aug 31, 2025
fc5bae1
Debugging
Power2All Aug 31, 2025
2245b23
Too much logging
Power2All Aug 31, 2025
bd79479
Debugging
Power2All Aug 31, 2025
bb4623f
Revert "Debugging"
Power2All Aug 31, 2025
43d2059
Revert "Too much logging"
Power2All Aug 31, 2025
7a43717
Revert "Debugging"
Power2All Aug 31, 2025
4cfa474
Revert "Trying to improve throughput"
Power2All Aug 31, 2025
dd98833
Revert "Trying to improve responsiveness by batch sending data"
Power2All Aug 31, 2025
ff96013
Trying to make UDP more efficient
Power2All Aug 31, 2025
46d1e88
Missing main changes.. ?
Power2All Aug 31, 2025
7dd106a
Revert "Missing main changes.. ?"
Power2All Aug 31, 2025
2469735
Revert "Trying to make UDP more efficient"
Power2All Aug 31, 2025
c27e586
Fixing a faster UDP handler to hand it over to a parser that will eve…
Power2All Sep 1, 2025
64d6461
Fixing possible issue
Power2All Sep 2, 2025
e062b48
Improving cleanup process
Power2All Sep 2, 2025
2209144
Improving the sharding system
Power2All Sep 2, 2025
380bda9
Improvements
Power2All Sep 11, 2025
4699074
Revert "Improvements"
Power2All Sep 11, 2025
da77101
Fixing
Power2All Sep 11, 2025
b102fd0
Fixing performance
Power2All Sep 11, 2025
b412f38
Fixing
Power2All Sep 11, 2025
7354135
Improving performance cleanup
Power2All Sep 12, 2025
a94cb6a
Adding statics per second info
Power2All Sep 13, 2025
d5c09d7
Possible sharding improvement
Power2All Sep 24, 2025
a2500e0
A little improvements further for performance
Power2All Sep 25, 2025
17a7623
Preparing for v4.0.14 release
Power2All Sep 25, 2025
b803e00
Nog een kleine fix
Power2All Sep 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
315 changes: 210 additions & 105 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "torrust-actix"
version = "4.0.13"
version = "4.0.14"
edition = "2024"
license = "AGPL-3.0"
authors = [
Expand All @@ -10,7 +10,7 @@ authors = [
description = "A rich, fast and efficient Bittorrent Tracker."

[profile.release]
opt-level = 'z'
opt-level = 3
debug = false
debug-assertions = false
overflow-checks = false
Expand Down Expand Up @@ -40,8 +40,8 @@ rcgen = "^0.14"
regex = "^1.11"
rustls = { version = "^0.23", default-features = false, features = ["std", "ring"] }
rustls-pemfile = "^2.2"
sentry = { version = "^0.42", default-features = false, features = ["rustls", "backtrace", "contexts", "panic", "transport", "debug-images", "reqwest"] }
sentry-actix = "^0.42"
sentry = { version = "^0", default-features = false, features = ["rustls", "backtrace", "contexts", "panic", "transport", "debug-images", "reqwest"] }
sentry-actix = "^0"
serde = { version = "^1.0", features = ["derive"] }
serde_json = { version = "^1.0", features = ["preserve_order"] }
serde_millis = "^0.1"
Expand All @@ -55,6 +55,10 @@ toml = "^0.9"
tracing = "^0.1"
utoipa = { version = "^5", features = ["actix_extras"] }
utoipa-swagger-ui = { version = "^9", features = ["actix-web"] }
lazy_static = "^1.5"
crossbeam = "^0.8"
futures = "^0.3"
rayon = "^1.11"

[target.'cfg(windows)'.build-dependencies]
winres = "^0.1"
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,20 @@ HTTP_0_TLS_CONNECTION_RATE <UINT64>

UDP_0_ENABLED <true | false>
UDP_0_BIND_ADDRESS <STRING>
UDP_0_THREADS <UINT64>
UDP_0_UDP_THREADS <UINT64>
UDP_0_UDP_WORKER_THREADS <UINT64>
UDP_0_UDP_RECEIVE_BUFFER_SIZE <UINT64>
UDP_0_UDP_SEND_BUFFER_SIZE <UINT64>
UDP_0_UDP_REUSE_ADDRESS <true | false>
```

### ChangeLog

#### v4.0.14
* Code optimizations thanks to AI scanning
* Huge memory and CPU consumption improvement for UDP, using offloading
* Complete scan of code for multiple other performance improvements

#### v4.0.13
* Added further UDP improvement by adding customization, also added to the config:
* Receive Buffer Size
Expand Down
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM rust:alpine

RUN apk add git musl-dev curl pkgconfig openssl-dev openssl-libs-static
RUN git clone https://github.com/Power2All/torrust-actix.git /app/torrust-actix
RUN cd /app/torrust-actix && git checkout tags/v4.0.13
RUN cd /app/torrust-actix && git checkout tags/v4.0.14
WORKDIR /app/torrust-actix
RUN cd /app/torrust-actix
RUN cargo build --release && rm -Rf target/release/.fingerprint target/release/build target/release/deps target/release/examples target/release/incremental
COPY init.sh /app/torrust-actix/target/release/init.sh
COPY healthcheck.py /app/torrust-actix/healthcheck
RUN chmod +x /app/torrust-actix/target/release/init.sh
RUN chmod +x /app/torrust-actix/healthcheck.py
RUN chmod +x /app/torrust-actix/healthcheck
EXPOSE 8080/tcp
EXPOSE 6969/tcp
EXPOSE 6969/udp
Expand Down
Loading