Skip to content

Fix problem with setting page permission during relocation - #64

Merged
alainfrisch merged 2 commits into
masterfrom
fix_reloc
Aug 2, 2018
Merged

alainfrisch merged 2 commits into
masterfrom
fix_reloc

Conversation

@alainfrisch

Copy link
Copy Markdown
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

db4 commented Aug 2, 2018

Copy link
Copy Markdown
Contributor

Looks good!

@alainfrisch

Copy link
Copy Markdown
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