Repository navigation
Open
Labels
Area-PerformanceIssue related to CPU or memory performanceIssue-BugIt either shouldn't be doing this or needs an investigation.
Description
Brief description of your issue
While installing zig compiler Extracting archive step takes a lot of time.
Reported in #3306 as well.
Steps to reproduce
- Run
winget install -e --id zig.zig - Wait until complete
Expected behavior
Speed up extraction
Actual behavior
Extracting took ~8 minutes with Winget.
Both major archive programs (7Zip and WinRAR) took around ~30 sec to do the same. Which is huge (x20 times) difference in time!
Environment
Windows Package Manager v1.5.1881
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22621.2070
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.1881.0
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
======================================================
Device name NOGRPC
Processor AMD Ryzen 5 1600 Six-Core Processor 3.17 GHz
Installed RAM 16.0 GB
Storage: Samsung SSD 980 PRO with Heatsink 1TBReacted by soredake, InternalHigh, ssstroke, Avi Aaron, Pedro Macedo, Olav Rønnestad Birkeland, Markus, Shuhel Ahmed, James Barrow, Kristoffer Eriksson and 16 more
Metadata
Metadata
Assignees
Labels
Area-PerformanceIssue related to CPU or memory performanceIssue-BugIt either shouldn't be doing this or needs an investigation.
Type
Projects
- StatusShow more project fieldsNo status
Activity
MagicAndre1981 commentedon Aug 6, 2023
Issue is defender which scans the zip
zipfldr.dll!ExtractZipToFile calls zipfldr.dll!CheckUnZippedFile which later calls shdocvw.dll!CAttachmentServices::_OpAntiVirus and shdocvw.dll!_SHExtCoCreateInstanceAndScan and this calls Defender functions from MpOAV.dll and MpClient.dll
InternalHigh commentedon Dec 31, 2023
Can you replace usage of zipfldr.dll with a decent implementation?
pedrohgmacedo commentedon May 5, 2024
I'm having this problem. I have windows defender turned off, and it still takes more than 1 minute to extract a file.
gonchik commentedon Jun 26, 2024
Nice shot! Thank you!
Xyndra commentedon Aug 7, 2024
Why does this still remain after a year of the issue being created. This is literally a Microsoft package and a Microsoft Defender / Unzipping problem this should be easily solvable!
zveinn commentedon Sep 26, 2024
just wanted to bump this. Experienced the same slowness on up to date Win11 using Powershell + winget
Started the winget install 3 minutes ago and it's still going.
TylerAustinW commentedon Sep 27, 2024
The person above me is.... still..... installing it.... a day later 🤣
zveinn commentedon Sep 27, 2024
1 million hours and counting
prcastro commentedon Oct 26, 2024
This issue is easily reproducible
gonchik commentedon Oct 27, 2024
Paulo Roberto de Oliveira Castro (@prcastro) please do perf analysis, and just exclude that operations
https://learn.microsoft.com/en-us/defender-endpoint/tune-performance-defender-antivirus
that workaround implement it.
720720 commentedon Jan 6, 2025
https://aka.ms/winget-settings
winget settings
%LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
GitMurf commentedon Jan 8, 2025
Wow this fixed it for me! Took about 10 seconds to install zig instead of 10 minutes!!
yhslai commentedon Mar 26, 2026
That's ridiculous. I mean it's expected as Microsoft can't even take care of their OS, let alone a package manager.
By the way if you install the exact same thing with scoop it takes seconds.
denelon commentedon Apr 29, 2026
Potentially Correlated Issues
The following open issues appear related to the same underlying performance limitations in archive extraction:
Note
These potentially correlated issues were identified using GitHub Copilot CLI as a research tool.