cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.76k stars 106 forks source link

Fetcher.fetchViaFile(): use an mmap(2)-ed file, similarly to DiskV1 #641

Closed edigaryev closed 10 months ago

edigaryev commented 10 months ago

Should help with the memory usage when pull'ing by mapping the file contents the virtual address space and referencing it, instead of copying it's chunks (and thus allocating the memory) with readDataUpToLength().