Skip to content

Cache AddressRange to avoid unnecessary recomputations - #154

Merged
Washi1337 merged 1 commit into
Washi1337:masterfrom
wondercrash:fix/addressrange-recomputations
Feb 25, 2026
Merged

Cache AddressRange to avoid unnecessary recomputations#154
Washi1337 merged 1 commit into
Washi1337:masterfrom
wondercrash:fix/addressrange-recomputations

Conversation

@wondercrash

Copy link
Copy Markdown
Contributor

Before:
image

After:
image

AddressRange should never need to be recomputed in these cases since BitVector.Bits is get-only so the length will never change

BasicMemorySpace is the biggest culprit here, but I did it for HostObject and CallFrame too because it shouldn't hurt.

@Washi1337 Washi1337 added core Issue related to the core definitions of Echo. emulation Issue related to the emulation modules of Echo. labels Feb 25, 2026
@Washi1337
Washi1337 merged commit 6796b43 into Washi1337:master Feb 25, 2026
2 checks passed
@wondercrash
wondercrash deleted the fix/addressrange-recomputations branch February 26, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issue related to the core definitions of Echo. emulation Issue related to the emulation modules of Echo.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants