Skip to content

utils: Use mmap for disk images in deterministic mode#190

Merged
dingusdev merged 1 commit into
dingusdev:masterfrom
mihaip:upstream-imgfile-mmap
Jul 7, 2026
Merged

utils: Use mmap for disk images in deterministic mode#190
dingusdev merged 1 commit into
dingusdev:masterfrom
mihaip:upstream-imgfile-mmap

Conversation

@mihaip

@mihaip mihaip commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

We were reading the entire disk image into a stringstream for deterministic mode, which is slow and memory-intensive. Instead on POSIX hosts we can use mmap to lazily map the disk image into memory, allowing it to be streamed in as the guest actually needs data from it.

Helps with iteration speed when debugging via deterministic mode.

We were reading the entire disk image into a stringstream for
deterministic mode, which is slow and memory-intensive. Instead on POSIX
hosts we can use `mmap` to lazily map the disk image into memory, allowing
it to be streamed in as the guest actually needs data from it.

Helps with iteration speed when debugging via deterministic mode.
@dingusdev dingusdev merged commit 6a9524a into dingusdev:master Jul 7, 2026
7 checks passed
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