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

Disable time tracking in wasm release builds because it's expensive #99841

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

kg
Copy link
Member

@kg kg commented Mar 15, 2024

Right now on main we spend a good chunk of cpu time just calling _emscripten_get_now in order to measure how long interpreter code generation takes. On most targets the equivalent timestamp checks are fast but on wasm, they're not.

So this PR disables those checks in wasm release builds specifically. Based on my measurements this should improve startup time a little bit.

@kg kg added the arch-wasm WebAssembly architecture label Mar 15, 2024
Copy link
Contributor

Tagging subscribers to this area: @SamMonoRT, @vargaz
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

@akoeplinger
Copy link
Member

/azp run runtime

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kg
Copy link
Member Author

kg commented Mar 16, 2024

This passed CI a couple times previously, so even though the lanes aren't working right now, is it fine to merge it?

@steveisok steveisok merged commit 1925138 into dotnet:main Mar 18, 2024
75 of 79 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-JIT-mono
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants