Reuse regex workers across grep and glob calls

Đã đóng
#201 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
desktop

Hướng nghiên cứu

Read src/main/tools/regex_worker.ts and files.ts around line 142, then trace how grep/glob calls start and stop workers and how timeouts or stopped calls are handled. The issue proposes a small reusable worker pool; done means calls can reuse workers while timed-out or stopped calls still terminate their worker. Add or run relevant tests for these lifecycle cases; none are named in the issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement performance priority: low severity: low

Suggestion from the 2026-10-07 code review (not a bug).

Each grep/glob call starts and terminates its own Worker (src/main/tools/regex_worker.ts, files.ts:142), which costs roughly 30–50 ms per call. The model often sends several in parallel.

Proposal

Keep a small pool of workers and terminate a worker only when a pattern times out or the call is stopped.

Ngôn ngữ chính
TypeScript
Star
2
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.