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
[flutter_tools] Optimize archive extraction on Windows #133371
Today, the tool uses package:archive to extract zip archives on Windows, since historically we could not rely on an unzipping utility being installed. However, this is both slow and sometimes results in out of memory crashes by the tool.
In addition, we have pinned the package as it has introduced new dependencies we dont' want to take on: #115660.
We should figure out another solution to extracting zip archives on Windows, that is both efficient and will work for all of our supported Windows users.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
christopherfujino commentedon Aug 26, 2023
We should also use this same solution when extracting the Dart SDK: https://github.com/flutter/flutter/blob/master/bin/internal/update_dart_sdk.ps1#L87
christopherfujino commentedon May 31, 2024
As @jmagman points out in #149427 (comment), the newest release of
archiveonly has dependencies oncryptoandpath, which we already depend on.jmagman commentedon Jun 5, 2024
#149430 unpins
archiveand updates from 3.3.2 to 3.6.1, which includes some memory and speed improvements:https://github.com/brendan-duncan/archive/blob/f1d164f8f5d8aea0be620a9b1e8d300b75a29388/CHANGELOG.md?plain=1#L51
https://github.com/brendan-duncan/archive/blob/f1d164f8f5d8aea0be620a9b1e8d300b75a29388/CHANGELOG.md?plain=1#L45
https://github.com/brendan-duncan/archive/blob/f1d164f8f5d8aea0be620a9b1e8d300b75a29388/CHANGELOG.md?plain=1#L37
Might be worth looking to see if there are still memory crashes.
christopherfujino commentedon Jun 5, 2024
Also look at if universally using the archive_io.dart library improves performance
matanlurey commentedon Jul 11, 2025
@bkonyi 👁️ ?
[flutter_tools] Extract Windows archives using native tar with PowerS…
github-actions commentedon Oct 1, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.