mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-22 23:31:12 +02:00
- Added asyncio.gather() to run all connector searches concurrently - Replaced sequential for-loop (~600 lines) with parallel execution - Added search_single_connector() helper function for cleaner code - Added CONNECTOR_EMOJIS and CONNECTOR_RESULT_NAMES mappings - Streams "Searching N sources in parallel" before concurrent execution - Processes results as they complete and streams found counts Before: 20 connectors × ~1s each = ~20s total After: All connectors run simultaneously = ~2-3s total This is the highest impact performance optimization identified in the audit. |
||
|---|---|---|
| .. | ||
| alembic | ||
| app | ||
| scripts | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .python-version | ||
| alembic.ini | ||
| celery_worker.py | ||
| Dockerfile | ||
| main.py | ||
| OLLAMA_MEMORY_OPTIMIZATION.md | ||
| pyproject.toml | ||
| uv.lock | ||