Skip to content

Conversation

@kg
Copy link
Member

@kg kg commented Mar 22, 2024

Metadata loading does a bunch of table searches that contain redundant lookups and checks, this PR attempts to optimize them by hoisting most of the checking and computation outside of the binary search operation.

Profile with this in effect: https://share.firefox.dev/4aqtjUc

@kg
Copy link
Member Author

kg commented Mar 23, 2024

I don't quite understand the linker error I'm getting on android and tvOS. I assume I need to apply a component API attribute to something, but I'm not sure what or why

Copy link
Member

@lambdageek lambdageek left a comment

Choose a reason for hiding this comment

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

lgtm. just some nits about making shared type sand functions.

@kg kg merged commit be3ad0d into dotnet:main Apr 12, 2024
matouskozak pushed a commit to matouskozak/runtime that referenced this pull request Apr 30, 2024
…net#100157)

* Optimize typedef_locator, table_locator and declsec_locator by hoisting initialization out
* Cleanup duplicated code with different understandings of locator_t
@github-actions github-actions bot locked and limited conversation to collaborators May 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-VM-meta-mono runtime-mono specific to the Mono runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants