Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mono] Optimize mono_metadata_decode_row_col_raw #99939

Merged
merged 7 commits into from
Mar 21, 2024
Merged

Conversation

kg
Copy link
Member

@kg kg commented Mar 18, 2024

The loop in this function is somewhat expensive, and in some wasm startup profiles I did we spent around 1% of cpu time inside it. From some quick tests this seems to make it a little bit faster, at the price of 9 bytes per MonoTableInfo (~500 bytes per assembly), which I think is worth it.

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, but we could do less, I think?

src/mono/mono/metadata/metadata.c Outdated Show resolved Hide resolved
src/mono/mono/metadata/metadata.c Outdated Show resolved Hide resolved
src/mono/mono/metadata/metadata.c Outdated Show resolved Hide resolved
@kg kg requested a review from marek-safar as a code owner March 20, 2024 20:10
@kg kg merged commit effc9e5 into dotnet:main Mar 21, 2024
77 of 79 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants