You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: comprehensive optimization across all layers
Batch 1-4 (core/llm/opencode/tui):
- Eliminate O(n²) projector rebuild with incremental updates
- Add HTTP request timeouts and transport retry logic
- Implement streaming compression to avoid blocking event loop
- Optimize TUI markdown rendering with incremental updates
Batch 5 (protocol/server):
- Add bounded queue for PTY WebSocket to prevent memory growth
- Harden CORS origin validation and use timing-safe auth comparison
Batch 6 (effect-drizzle-sqlite):
- Default to immediate transactions to prevent cross-process conflicts
- Add statement caching in node driver (LRU 1000)
- Consolidate PRAGMA settings to database.ts
Batch 7 (infrastructure):
- Fix CI trigger branches to include dev
- Support OPENCODE_VERSION env var for release builds
- Use INSERT OR IGNORE for idempotent migrations
- Add workspace.project_id index for query performance
All changes maintain backward compatibility and pass typecheck.
0 commit comments