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

Convert Scratch lookup to binary search #1943

Merged

Conversation

amanasifkhalid
Copy link
Member

Preliminary work for #1903: Before making any design changes, we should try using binary search over the Scratch table, and profile the performance gain. I likely won't have time to fully pursue this task, but we can at least get rid of the linear search for now.

src/coreclr/vm/codeman.cpp Show resolved Hide resolved
src/coreclr/vm/codeman.cpp Show resolved Hide resolved
src/coreclr/vm/codeman.h Outdated Show resolved Hide resolved
@amanasifkhalid
Copy link
Member Author

@cshung I pushed changes addressing your feedback. For asserting the lookup table's size is <= the runtime function table's size, I changed the method's parameter list to just pass pInfo, but this required making HotColdMappingLookupTable a friend of ReadyToRunInfo -- not sure if this is ideal or not...

@cshung cshung merged commit 03e54c4 into dotnet:feature/hot-cold-splitting Jul 28, 2022
@amanasifkhalid amanasifkhalid deleted the binary-search branch August 8, 2023 19:20
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