Skip to content

v7.7.1 - Performance Optimization / 性能优化

Choose a tag to compare

@DMSQ-creator DMSQ-creator released this 17 Mar 08:37
· 16 commits to main since this release

English

  • Optimized Popup performance: Replaced linear array search with Set-based $O(1)$ lookups, drastically reducing lag when opening the extension.
  • Lazy Storage Loading: Now only loads necessary UI fields instead of the full storage object, reducing memory overhead.
  • Enhanced Stability: Fixed several potential race conditions in rule matching.

中文说明

  • 优化弹出页性能: 将线性的数组搜索替换为基于 Set 的 $O(1)$ 查找,大幅减少打开插件图标时的卡顿感。
  • 按需加载存储: 现在仅加载必要的 UI 字段,而非全量读取存储对象,降低了内存占用和加载耗时。
  • 增强稳定性: 修复了规则匹配中几处潜在的竞态条件问题。