Skip to content

Prefer adjust over lookup + insert.#1521

Merged
dmjio merged 1 commit into
masterfrom
intmap-perf
May 27, 2026
Merged

Prefer adjust over lookup + insert.#1521
dmjio merged 1 commit into
masterfrom
intmap-perf

Conversation

@dmjio
Copy link
Copy Markdown
Owner

@dmjio dmjio commented May 27, 2026

It is more performant to use adjust w/ IntMap than lookup + insert.

  • modify modifyComponent to use Data.IntMap.adjust

It is more performant to use `adjust` w/ `IntMap` than `lookup` +
`insert`.

- [x] modify `modifyComponent` to use `Data.IntMap.adjust`
@dmjio dmjio merged commit 1f3182c into master May 27, 2026
2 checks passed
@dmjio dmjio deleted the intmap-perf branch May 27, 2026 07:27
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.

1 participant