Server: the allocation sources left after #3164 (NPC scope frames, status-effect snapshot, guild member views, cast rows)

Đang mở
#3,291 2 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
go
Lĩnh vực
backend, performance

Hướng nghiên cứu

Start with the open parts: statuseffect.(*Registry).Snapshot, store.storeGuildDoor.guildMemberViewsLocked, and the cast rows in domain/social.go. For each, check which callers hold the returned copy and whether it can be shared. Run the 200-NPC/1200-published benchmark before and after each change. Done means each part reports B/op and allocs/op deltas. The open questions are design calls, so confirm the approach with maintainers first.

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

Mô tả

area: server enhancement priority: high

Follow-up to #3164: the server allocation sources it left open.

#3164's large rows are merged:

  • Character copies: #3169, #3223, #3106, and the staged bag rows in #3285.
  • Ground drops: #3194's per-division delta journal.
  • The commit path: the digest skip, #3229 and #3106.

The audit in #3285 names what stays.

Parts

  • simulation.NpcScopeFrames (2.8 % of allocated bytes on the live profile): reuse or recompute per tick? Called from Ticker.runSessionLegs. Reuse - #3327: one NpcScopeBuffer per division tick state, carried across the sequential session legs; steady state 19,450 -> 447 B/op, 6 -> 0 allocs/op (200-NPC/1200-published bench fixture).
  • statuseffect.(*Registry).Snapshot (2.2 %): which readers need a fresh copy?
  • store.storeGuildDoor.guildMemberViewsLocked (1.9 %): guild door paths.
  • The cast copy's rows (domain/social.go snapshots): taken fresh per snapshot, with no previous copy to share against.
  • Re-profile the live server after the next release, using #3164's method: loopback heap profile, allocated bytes per source.

Done when

  • Each part reports its own before and after (benchmark B/op and allocs/op).
  • The post-release live profile shows the allocation rate under #3164's 110 MB/s, with the new top sources listed.
Ngôn ngữ chính
Go
Star
97
Fork
61
Merge trung bình
4 giờ 14 phút
Pull request đã merge (30 ngày)
913

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 khác của opensro-dev/opensro

Tất cả issue của opensro-dev/opensro

Issue tương tự

Thêm issue về Go

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.