Skip to content

Feature/20260623 ai reply speed up 1 - #40

Merged
donfaquir merged 6 commits into
mainfrom
feature/20260623-ai-reply-speed-up-1
Jun 24, 2026
Merged

Feature/20260623 ai reply speed up 1#40
donfaquir merged 6 commits into
mainfrom
feature/20260623-ai-reply-speed-up-1

Conversation

@donfaquir

Copy link
Copy Markdown
Owner

摘要

变更类型

  • 缺陷修复
  • 新功能或行为变更
  • 文档或元数据(LICENSE、CI 等)
  • 重构或性能(无行为变化)
  • 其他:

检查清单

  • 本地已运行 npm run build(若改动前端)
  • 本地已运行 cd src-tauri && cargo test(若改动 Rust)
  • 不包含无权再许可的第三方素材或机密信息
  • 已阅读并遵守 CONTRIBUTING.mdCODE_OF_CONDUCT.md

备注

Spec-1.0: replace per-request reqwest::Client with a shared
Arc<reqwest::Client> registered as Tauri managed state, eliminating
redundant TLS init and connection-pool setup on every LLM call.

Spec-2.0: add EmbeddingCache (RwLock + generation-based invalidation)
so load_all_doc/thought_embeddings runs once then serves from memory,
cutting 100-500ms of SQLite full-table-scan IO per chat message.
@donfaquir
donfaquir merged commit 130dbb7 into main Jun 24, 2026
2 checks passed
@donfaquir
donfaquir deleted the feature/20260623-ai-reply-speed-up-1 branch June 24, 2026 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant