github yuzeguitarist/Deck v1.1.0(fix)
v1.1.0(fix) | Bug Fix

latest releases: v1.4.5, v1.4.4, v1.4.3...
5 months ago

Deck

Deck

A modern, native, privacy-first clipboard OS for macOS

Release Notes v1.1.0 (fix)

本版本为紧急修复更新,重点解决主线程被数据库同步查询阻塞导致的异常耗电、频繁唤醒与卡顿问题。
This is a hotfix release focused on eliminating abnormal battery drain, frequent wake-ups, and stutters caused by synchronous DB work on the main thread.


优化 / Improvements

  • 数据库访问统一走串行 dbQueue 的异步执行,并通过 await 获取结果,显著降低主线程压力与能耗。
    Unified DB access to run asynchronously on the serial dbQueue and await results, significantly reducing main-thread load and energy impact.

  • 异步闭包补充显式 self 捕获,线程/并发语义更清晰,避免隐式捕获带来的可读性与维护成本。
    Async closures now explicitly capture self for clearer concurrency semantics and easier maintenance.


修复 / Fixes

  • 修复:主线程同步等待数据库队列执行 SQLite 查询导致 CPU 长时间繁忙与频繁唤醒(异常耗电)。
    Fixed: The main thread synchronously waiting on the DB queue caused sustained CPU activity and frequent wake-ups (abnormal battery drain).

  • 修复:搜索、FTS、统计、导出等路径在 UI 线程触发同步 SQL,放大能耗与卡顿。
    Fixed: Search, FTS, stats, and export paths triggering synchronous SQL on the UI thread amplified energy use and UI stutters.

  • 修复:搜索、FTS、向量检索与迁移等查询路径改为异步 DB 调用,阻断主线程 SQL 扫描与阻塞等待。
    Fixed: Search, FTS, vector queries, and migration paths now use async DB calls to prevent main-thread SQL scans and blocking waits.

  • 修复:统计与导出改为异步读取数据库,UI 线程不再直接执行 SQL。
    Fixed: Stats and export now read the DB asynchronously, so the UI thread no longer executes SQL directly.


技术变更 / Technical Changelog

  • 将原先可能发生在主线程上的同步 DB 查询/写入,统一改为通过 dbQueue 异步执行并 await 返回。
    Reworked synchronous DB reads/writes that could occur on the main thread to run asynchronously on dbQueue and await results.

  • 将高频路径(搜索/FTS/统计/导出/迁移等)切换到异步 DB 调用,避免 UI 线程被同步等待拖住。
    Moved high-frequency paths (search/FTS/stats/export/migrations) to async DB calls to avoid UI thread stalls.


兼容性与行为说明 / Compatibility & Behavior Notes

  • 本版本为性能与能耗修复更新,不引入新的用户交互流程。
    This is a performance/energy hotfix and does not introduce new user interaction flows.

  • 所有处理逻辑均在本地完成,不上传、不存储任何用户数据。
    All processing remains local with no data uploaded or stored remotely.


升级建议 / Upgrade Notes

  • 强烈建议所有 v1.1.0 用户升级至此版本,尤其是遇到明显耗电、频繁唤醒或面板卡顿的情况。
    Strongly recommended for all v1.1.0 users, especially if you experienced battery drain, frequent wake-ups, or UI stutters.

致谢 / Notes

  • 祝大家新的一年身体健康,事业顺利,家庭和睦。
    Wishing everyone good health, a smooth career, and family harmony in the new year.

Don't miss a new Deck release

NewReleases is sending notifications on new releases.