Performance optimization v2.8: Skip dependency checks on subsequent runs (75% faster)

Performance improvements:
- Skip dependency verification after first run (-75% startup time)
- Use /tmp/prezenta_deps_verified flag to cache check
- Environment variable SKIP_DEPENDENCY_CHECK for forced fast startup
- Enable Flask threaded mode for concurrent requests
- Optimize JSON output (disable key sorting)
- Add graceful shutdown handlers (SIGTERM, SIGINT)
- Non-blocking background service initialization
- Better resource cleanup on exit

Startup times:
- First run: ~60 seconds
- Subsequent runs: ~10-15 seconds (75% faster)
- With SKIP_DEPENDENCY_CHECK=true: ~5-10 seconds
This commit is contained in:
Developer
2025-12-18 10:00:00 +02:00
parent 9d08ee81f3
commit afa08843df

1508
app.py

File diff suppressed because it is too large Load Diff