Skip to content

Mmap the incremental data instead of reading it.#83214

Merged
bors merged 4 commits intorust-lang:masterfrom
cjgillot:dep-map
Sep 7, 2021
Merged

Mmap the incremental data instead of reading it.#83214
bors merged 4 commits intorust-lang:masterfrom
cjgillot:dep-map

Conversation

@cjgillot
Copy link
Contributor

@cjgillot cjgillot commented Mar 16, 2021

Instead of reading the full incremental state using fs::read_file, we memmap it using a private read-only file-backed map.
This allows the system to reclaim any memory we are not using, while ensuring we are not polluted by
outside modifications to the file.

Suggested in #83036 (comment) by @bjorn3

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.