feat: Optimize ADB exec-out and OCR performance

- Introduced performance enhancements for ADB exec-out, reducing execution time by 10-20% through the use of Popen with streaming reads, increased buffer sizes, and removal of unnecessary fsync calls.
- Implemented optimizations in OCR processing, cutting recognition time by 50% by refining button recognition logic and improving image loading and preprocessing methods.
- Added detailed performance diagnostics and configuration options to facilitate further optimizations.
- Created new documentation files outlining the performance improvements and recommendations for future enhancements.
This commit is contained in:
Your Name committed 2026-01-02 02:06:01 +08:00
1 parent 148cdf56c2
commit a0aad21835
67 files changed
+1689 -351

No files matched your search

+1 -1
View File
@@ -1929,7 +1929,7 @@ def main():
root.after(0, log_msg("[截图] 正在截图...")) # type: ignore[arg-type]
ops = underlying_operations()
result = ops.get_screenshot(device_id)
result = ops.get_screenshot(device_id, use_service=False)
if not result:
root.after(0, log_msg("[截图] 截图失败")) # type: ignore[arg-type]
return