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

Fix problem with setting page permission during relocation #64

Merged
merged 2 commits into from
Aug 2, 2018

Conversation

alainfrisch
Copy link
Collaborator

Another take at #57, avoiding repeated calls to VirtualProtect on the same pages for performance reasons.

Loading the big .cmxs I mentioned in #57 now takes about 0.22s (against 0.20s before the change, and against 0.65s with the version in #57). One could try to be even more clever and group relocation that fall in adjacent pages, but this becomes a bit more tricky.

Another take at #57, avoiding repeated calls to VirtualProtect
on the same pages for performance reasons.
@db4
Copy link
Contributor

db4 commented Aug 2, 2018

Looks good!

@alainfrisch
Copy link
Collaborator Author

Following this PR, one could avoid computing those 'nonwr' stuff. Cf 47e7180

This breaks compatibility between versions of flexdll, for very little gain. So perhaps it's not worth doing it now.

@alainfrisch alainfrisch merged commit 5f0011a into master Aug 2, 2018
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