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

オープン
#3,291 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
go

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Go
スター
97
フォーク
61
平均マージ
4時間 14分
マージ済み PR(30日)
913

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

opensro-dev/opensro のほかの issue

opensro-dev/opensro の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。