Skip to content

Use cached values in ItemSignature#246

Merged
ptthanh02 merged 2 commits into
NighterDevelopment:mainfrom
RVSkeLe:perf/ItemSignature
May 29, 2026
Merged

Use cached values in ItemSignature#246
ptthanh02 merged 2 commits into
NighterDevelopment:mainfrom
RVSkeLe:perf/ItemSignature

Conversation

@RVSkeLe
Copy link
Copy Markdown
Contributor

@RVSkeLe RVSkeLe commented May 28, 2026

Refactor ItemSignature hot paths and reduce repeated ItemStack access.

  • Use cached properties inside ItemSignature
  • Centralize cloning through getTemplate()
  • Rename getTemplateRef() to getUnsafeTemplateRef()

Behavior should remain unchanged.

Note: I'm trying to split PR #235 into multiple smaller and specific PRs.

@ptthanh02 ptthanh02 merged commit a7e95d1 into NighterDevelopment:main May 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants