Remove performance config, hardcode maximum throughput values#59
Remove performance config, hardcode maximum throughput values#59karilaa-dev merged 5 commits intomainfrom
Conversation
Simplify configuration by removing most performance-related env vars and hardcoding values optimized for maximum resource usage: - ThreadPoolExecutor: 500 workers (vs default 32) - aiohttp connections: unlimited (limit=0) - curl_cffi pool: 10000 max_clients - Image downloads: no concurrency limit (removed semaphore) Keep only 3 user-configurable limits via env vars: - MAX_USER_QUEUE_SIZE (default 0 = no limit) - STREAMING_DURATION_THRESHOLD (default 300s) - MAX_VIDEO_DURATION (default 0 = no limit)
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
The author field was defined but never used in the codebase - only appeared in docstring examples.
User description
Summary
Test plan
PR Type
Enhancement
Description
Remove performance config, hardcode values
ThreadPoolExecutor: 500 workers, aiohttp: unlimited
curl_cffi: 10000, images: unlimited
Keep 3 user-configurable limits
Diagram Walkthrough
File Walkthrough
1 files
Remove performance config fields6 files
Remove aiohttp pool parametersRemove aiohttp pool parametersRemove executor size configurationUpdate queue limit check logicRemove image download concurrency limitHardcode performance values1 files
Remove performance env variables