Skip to content

Replace entity equipment items to array#711

Merged
Dreeam-qwq merged 2 commits into
ver/1.21.11from
perf/entity-equipment-items-to-array
May 12, 2026
Merged

Replace entity equipment items to array#711
Dreeam-qwq merged 2 commits into
ver/1.21.11from
perf/entity-equipment-items-to-array

Conversation

@Dreeam-qwq
Copy link
Copy Markdown
Member

@Dreeam-qwq Dreeam-qwq commented Apr 24, 2026

Directly using the array to avoid unnecessary safe checks and casting in the enum map.

https://spark.lucko.me/VwjjVcMgwv?hl=95640
From discord post: https://discord.com/channels/1145991395388162119/1495041949885927515

PixPin_2026-04-24_03-44-24

@Dreeam-qwq Dreeam-qwq added the type: optimization Pull request for optimization label Apr 24, 2026
@Dreeam-qwq Dreeam-qwq assigned hayanesuru and unassigned hayanesuru Apr 27, 2026
@Dreeam-qwq Dreeam-qwq requested a review from hayanesuru April 28, 2026 17:29
@hayanesuru hayanesuru force-pushed the perf/entity-equipment-items-to-array branch from 3b25219 to 5d9f0a3 Compare May 12, 2026 08:27
@Dreeam-qwq Dreeam-qwq merged commit 431a73c into ver/1.21.11 May 12, 2026
1 of 2 checks passed
@Dreeam-qwq Dreeam-qwq deleted the perf/entity-equipment-items-to-array branch May 12, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: optimization Pull request for optimization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants