Quality & Performance improvements: error handling, speed optimization, peer discovery, battery optimization#12
Merged
Conversation
…ptimization, peer discovery, battery optimization - Better error handling: Add network timeouts (peer 60s, request 20s, handshake 10s), tracker/torrent error alerts, per-torrent lastError field displayed on cards, snackbar feedback for addMagnet failures - Download speed: Connection limits (200 total, 8 unchoke slots), active torrent limits (4 down, 4 seed, 6 active), send buffer tuning (512KB watermark) - Peer discovery: DHT bootstrap nodes configured, announce_to_all_trackers/tiers enabled - Battery optimization: Adaptive tick interval (500ms foreground, 2000ms background), polling rate (3s foreground, 10s background), alert queue capped at 1000 - Code quality: Polling on IO thread, retryWhen with exponential backoff for flow resilience - Tests: Added error handling test to MainScreenViewModelTest; all 26 tests pass - Documentation: Updated README with Recent Improvements section Tested on R37 and MP36 emulators - app launches and runs correctly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive Quality & Performance improvements addressing four key pillars:
Technical Details
JNI (torrent_jni.cpp)
Kotlin Layer
UI
Testing & Docs
Verification
./gradlew testDebugUnitTest— all 26 tests pass./gradlew lint— no warnings