Repository navigation
perf(search): throttle provider search concurrency with Semaphore and… - #3345
Iyyappan-15 wants to merge 2 commits into
Conversation
… configurable timeout Throttles concurrent provider searches using a Semaphore (default 10) and per-provider timeout (default 8s) to prevent OOM and socket exhaustion on Android TV and low-RAM devices. Exposes user-configurable options in Settings > Providers and includes unit tests in SearchConcurrencyTest.
|
Please state your usage of AI as per our AI policy. |
|
AI Usage Disclosure (as per AI-POLICY.md) This pull request was developed with the assistance of an AI assistant (Google Gemini / Antigravity). What the AI Assisted With: • Identifying the unbounded parallel search fan-out issue as a potential cause of Out-of-Memory (OOM) crashes on low-RAM devices. What I Personally Did: • Reviewed and understood the existing SearchViewModel.kt and ParCollections.kt implementations to ensure the proposed solution aligned with the project's architecture. Final Responsibility: AI was used strictly as a development aid. I personally reviewed, understood, tested and validated all changes before submitting this pull request. |
… configurable timeout
Throttles concurrent provider searches using a Semaphore (default 10) and per-provider timeout (default 8s) to prevent OOM and socket exhaustion on Android TV and low-RAM devices. Exposes user-configurable options in Settings > Providers and includes unit tests in SearchConcurrencyTest.