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

Binary searched length cache and no superfluous cache clearing. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arlm
Copy link
Owner

@arlm arlm commented Jul 12, 2019

LengthTo showed up as the main hot-spot on profiles of large method emissions. The replaced implementation would always start at the beginning in the event of a miss (even though length determination might have been done through a higher offset, and the cache was being cleared even in the most common event of a simply appended instruction.

Closes PR #5

Co-authored-by: n8allan

@arlm
Copy link
Owner Author

arlm commented Jul 12, 2019

@n8allan, can you please explain a little the idea or make a test to ensure that this method is really working?

@arlm arlm force-pushed the feature/cache-peformance branch from 4a7a0a0 to 718377e Compare July 29, 2019 07:55
LengthTo showed up as the main hot-spot on profiles of large method emissions.  The replaced implementation would always start at the beginning in the event of a miss (even though length determination might have been done through a higher offset, and the cache was being cleared even in the most common event of a simply appended instruction.

Closes PR #5

Co-authored-by: n8allan <[email protected]>
@arlm arlm force-pushed the feature/cache-peformance branch from 718377e to 933638e Compare August 7, 2019 15:27
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.

1 participant