Skip to content

optimize inventory lookup with map cache#242

Merged
Maxlego08 merged 1 commit into
Maxlego08:developfrom
RuleGaed:main
May 17, 2026
Merged

optimize inventory lookup with map cache#242
Maxlego08 merged 1 commit into
Maxlego08:developfrom
RuleGaed:main

Conversation

@RuleGaed
Copy link
Copy Markdown

Replaced O(n) linear scan in getInventory(name) with O(1) HashMap lookup. Cache is populated on inventory load and synced on delete/reload operations.

Replaced O(n) linear scan in getInventory(name) with O(1) HashMap lookup. Cache is populated on inventory load and synced on delete/reload operations.
@Maxlego08 Maxlego08 changed the base branch from main to develop May 17, 2026 16:39
@Maxlego08 Maxlego08 merged commit 3bba4ff into Maxlego08:develop May 17, 2026
3 checks 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