HermitCrab: #546 follow-ons (compiled slot-rule sharing, ParallelApplySlots) are unbuilt and unmeasured in work steps

Đang mở
#608 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/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ệ
csharp
Lĩnh vực
performance

Hướng nghiên cứu

Start with docs/hermitcrab-2026-10-21-search-cost-round.md, lines 319–330, and the optimization ledger on branch docs/hc-optimization-ledger at 2eba2f50; begin after PR #546 lands. Measure compiled-rule-sharing work steps with a deterministic counter on the full lists, then document a design for ParallelApplySlots. Done means the measurement and design are recorded; the issue names no specific C# files or tests.

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

Mô tả

Claude-drafted.

Two follow-ons to PR #546 (shared trailing slot batches) are not built and have no work-step measurement: sharing compiled slot rules across templates, and a design for ParallelApplySlots, whose layered breadth-first queue needs its own design.

Status: not started. Waits on #546 landing.

What we know:

  • #546's C# gain is counted in slot batches on samples, not in work steps on full lists: Sena 31.4% fewer (47,072 to 32,287), Mbugwe 19.3% fewer (72,467 to 58,486).
  • The port measured the same batch sharing in work steps: Sena 11.5% less work, Mbugwe 18.1% less (1,364-word partial), Aweti 0.35%, none on one-template grammars.
  • #546 covers sequential, untraced walks without an alternative limit. ParallelApplySlots is outside it.

Not known: the work-step effect of compiled-rule sharing; what a ParallelApplySlots design needs.

Proposed change (C#): measure the work-step effect of compiled-rule sharing on the full word lists, then design ParallelApplySlots. A deterministic work counter on full lists comes first (lead 7 of the 2026-10-21 round).

Related: PR #546 (open), #566 (open). PanGloss: sillsdev/PanGloss#110 (the pointer issue for this one, open); sillsdev/PanGloss#66 (open) ports the batch sharing of #546 and #566 only, not these follow-ons.

Next: once #546 lands, count compiled-rule sharing in work steps on the full lists.


Evidence -- where the numbers come from
  • C# batch counts and port work steps: ledger row 26 (Sena 47,072 to 32,287 is 31.4%; Mbugwe 72,467 to 58,486 is 19.3%; port Sena 11.5%, 31.6% fewer steps, 448,573 batches avoided; Mbugwe 18.1% on a 1,364-word partial; Aweti 0.35%).
  • The round's own wording: "The C# gain is measured in slot batches on samples, not in a work counter on full lists."
  • ParallelApplySlots exists today at AnalysisAffixTemplateRule.cs#L96 (called from line 71).
Sources -- retired record, pinned at 2eba2f50 (closed PR #490)
Ngôn ngữ chính
C#
Star
29
Fork
16
Merge trung bình
4 ngày 11 giờ
Pull request đã merge (30 ngày)
14

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 khác của sillsdev/machine

Tất cả issue của sillsdev/machine

Issue tương tự

Thêm issue về C#

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.