Skip to content

[armv7] Implement IsELFDataRelocation more efficiently#8262

Merged
fuzyll merged 3 commits into
devfrom
test_armv7_is_elf_data_reloc
Jun 12, 2026
Merged

[armv7] Implement IsELFDataRelocation more efficiently#8262
fuzyll merged 3 commits into
devfrom
test_armv7_is_elf_data_reloc

Conversation

@bdash

@bdash bdash commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

There's no reason for these to create std::maps when a switch does the trick.

@bdash bdash requested a review from fuzyll June 11, 2026 22:43

@fuzyll fuzyll 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.

Good find! I'm not really sure why this was written that way. I also wouldn't have immediately realized this was a performance problem if it hadn't come up in the context of the user's issue today.

...which, as far as I can tell, has been completely backwards since this
code was shipped.
@fuzyll fuzyll self-assigned this Jun 12, 2026
@fuzyll fuzyll added this to the Krypton milestone Jun 12, 2026
bdash added 2 commits June 11, 2026 23:11
…mapped into the address space

These sections are added to the parent view. Do the work within a bulk
segment modification to significantly reduce the overhead of adding
sections.
There's no reason for these to create `std::map`s when a switch does the
trick.
@fuzyll fuzyll force-pushed the test_armv7_is_elf_data_reloc branch from 432a587 to 01ab3ad Compare June 12, 2026 03:12
@fuzyll fuzyll merged commit 01ab3ad into dev Jun 12, 2026
4 of 5 checks passed
@fuzyll fuzyll deleted the test_armv7_is_elf_data_reloc branch June 12, 2026 17:37
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