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

Ouverte
#3,291 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
25/100
Type d'issue
Refactorisation
Clarté
À clarifier
Activité
Active
Stack technique
go
Domaine
backend, performance

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.
Langage dominant
Go
Étoiles
97
Forks
61
Merge moyen
4 h 14 min
PR mergées (30 j)
913

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de opensro-dev/opensro

Toutes les issues de opensro-dev/opensro

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.