Releases: LessUp/bookmarks-cleaner
Releases · LessUp/bookmarks-cleaner
v2.0.1
Summary
This release focuses on performance optimization, code quality improvements, and documentation restructuring.
Performance Improvements
- LRU Cache Implementation: All caches now use
OrderedDictwith proper LRU eviction to prevent memory leaks - Pre-compiled Regex Patterns: Regular expressions are now compiled at module level for better performance
Code Quality
- Unified ClassificationResult: Single canonical definition in
ai_classifier.py - Cache Invalidation Fix:
learn_from_feedback()now properly clears both caches
Documentation
- Restructured Architecture Docs: Updated to reflect current code structure
- Consolidated Changelog: Created unified
CHANGELOG.md
摘要
本版本专注于性能优化、代码质量改进和文档重构。
性能改进
- LRU 缓存实现: 所有缓存现使用
OrderedDict实现 LRU 淘汰,防止内存泄漏 - 预编译正则表达式: 正则表达式现于模块级别编译,提升性能
代码质量
- 统一 ClassificationResult: 在
ai_classifier.py中统一定义 - 缓存失效修复:
learn_from_feedback()现正确清理缓存
文档
- 重构架构文档: 更新反映当前代码结构
- 合并更新日志: 创建统一的
CHANGELOG.md
Full Changelog: v2.0.0...v2.0.1