Keep one FakePlayer per robot if the cost is real: measure first
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 28/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- performance
Research direction
Start at RobotManager.fakePlayer, the loader call that builds a FakePlayer per action, and check where advancement listeners are registered on creation. First task is measurement, not code: run a program that builds for several minutes under both Fabric and NeoForge and count FakePlayer creations per owner, reusing the GameTest profiling setup mentioned here. Only if it is recreated should the FakePlayer be cached, with its lifetime tied to robot load, level change and server stop, leaving #246's contract and claim protection untouched.
Written by the indexing model from the issue text.
Description
Job to be done
When my robot builds and breaks blocks, I want each action to be cheap, so the server stays smooth.
Player value
Less server work for programs that build.
What the code says today (develop, 2026-11-24)
RobotManager.fakePlayerasks the loader for a FakePlayer for every action. Creating one registers its advancement listeners.- Measured on a laptop (i7-12800H) on 2026-11-24. A Java profile of four GameTest runs had about 11 percent of the robot executor's samples in creating FakePlayers.
- Part of that is the tests themselves: every test has new owners, so each needs a new FakePlayer. Whether it is created again for the same owner in normal play is not measured.
Acceptance criteria
- Measured first: how often a FakePlayer is created for one owner who builds for several minutes, on Fabric and NeoForge.
- If it is created only once, the issue is closed with the numbers.
- Otherwise: it is kept while the robot is loaded, and let go when the robot unloads, the level changes or the server stops. No level is kept in memory.
- The FakePlayer contract (#246) and claim protection are unchanged.
Parent: #50
Priority: P3
- Dominant language
- Java
- Stars
- 0
- Forks
- 1
- Avg merge
- 1h 29m
- Merged PRs (30d)
- 42
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from halisonworks/mod-codeling
-
area: editor P3 type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
halisonworks/mod-codeling#290 ·
Maintainers usually reply within 1 day
-
area: docs good first issue P2 type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
halisonworks/mod-codeling#273 ·
Maintainers usually reply within 1 day
-
Server admin guideOpenarea: docs P2 type: feature
Difficulty 2/5 Half a day Newbie friendliness 72/100
halisonworks/mod-codeling#272 ·
Maintainers usually reply within 1 day
-
area: docs good first issue P2 type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
halisonworks/mod-codeling#271 ·
Maintainers usually reply within 1 day
-
area: build good first issue P3 type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
halisonworks/mod-codeling#268 ·
Maintainers usually reply within 1 day
All issues in halisonworks/mod-codeling
Similar issues
-
hermes-queue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
chrisalunlloyd2-sudo/mindpalace#430 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
unitycatalog/unitycatalog#2363 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
area/dependencies area/dependencies/js backport/26.6 backport/26.8 kind/cve severity/medium source/scan-dependencies status/triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 2 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 2 days