Skip to content

perf: add indexed dict lookups to data_svc.locate() for O(1) access by id#3323

Open
deacon-mp wants to merge 1 commit into
masterfrom
fix/data-svc-indexed-lookups
Open

perf: add indexed dict lookups to data_svc.locate() for O(1) access by id#3323
deacon-mp wants to merge 1 commit into
masterfrom
fix/data-svc-indexed-lookups

Conversation

@deacon-mp

Copy link
Copy Markdown
Contributor

data_svc.locate() scans full RAM list for each lookup. Added id-indexed dicts for O(1) lookups. With tests.

Use in-memory index for O(1) lookups on common fields like paw, ability_id.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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