refactor(storage): reduce crate:: refs 19→5 via use consolidation#11
Merged
Conversation
**问题**: storage.rs 有 19 个行内 crate:: 引用,耦合度偏高。 **方案**: 集中导入外部模块,消除行内全路径引用: - → - - - - 测试局部导入 - 自引用 / → 直接使用 **效果**: - storage.rs crate:: 引用: 19 → 5 (-74%) - 零运行时行为变更 验证: - cargo check --workspace: 0 errors - cargo clippy --workspace --all-targets: 0 warnings - cargo test --workspace: 503 passed / 0 failed / 4 ignored
- 4 个候选方案对比:A(补偿扫描)/B(FTS5)/C(2PC)/D(物化视图) - 推荐:维持方案 A,v0.17.0 触发 FTS5 评估矩阵 - 附录:FTS5 功能评估矩阵(7 项维度) - 工作量:FTS5 PoC 评估约 2-3 天
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
storage.rs 耦合治理:
验证: cargo check 0 errors; clippy 0 warnings; test 503 passed / 0 failed