You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Speed up nupkg extraction using mmap/CreateFileMapping #9807
I was playing around with tarball extraction in Rust, trying to speed it up, when someone suggested using mmap for the destination files before writing to them (Windows version is CreateFileMapping). This resulted in a 4-5x speedup of a 7.5mb tarball containing 65k files -- going from 17-22s extraction times to a mere 3.5-4.5s.
I believe it's worth exploring doing this ourselves for .nupkg extraction during Restore -- it's unclear whether the extraction benefit is mainly for many small files, or whether fewer large files can still take advantage of this, but it's worth a shot anyway, for that kind of improvement!
changed the title [-]Spike: Explore speeding up nupkg extraction using mmap/CreateFileMapping[/-][+]Speed up nupkg extraction using mmap/CreateFileMapping[/+]on Oct 28, 2020
Activity
nkolev92 commentedon Jul 16, 2020
Tip for the implementer, use https://github.com/NuGet/NuGet.Client/tree/dev/scripts/perftests to validate the impact in a real restore :)
restore: trying out mmap-based file extraction (#3524)
[-]Spike: Explore speeding up nupkg extraction using mmap/CreateFileMapping[/-][+]Speed up nupkg extraction using mmap/CreateFileMapping[/+]