Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mmitche
Copy link
Member

@mmitche mmitche commented Jun 12, 2023

  • 'Using' archive stream in ZipData.cs
  • When repacking, make an initial pass over the container set to separate out large/small containers. Then repack small ones in parallel, and large ones in serial. Large and small are determined by a 2GB limit/max parallelism.

In the code, we could have used two loops instead of 3. Instead, I prioritized printing the correct number of containers being packed in parallel vs. serial.

To double check:

- 'Using' archive stream in ZipData.cs
- When repacking, make an initial pass over the container set to separate out large/small containers. Then repack small ones in parallel, and large ones in serial. Large and small are determined by a 2GB limit/max parallelism.

In the code, we could have used two loops instead of 3. Instead, I prioritized printing the correct number of containers being packed in parallel vs. serial.
@mmitche mmitche requested review from dibarbet, chcosta and epananth June 12, 2023 23:09
@mmitche
Copy link
Member Author

mmitche commented Jun 12, 2023

#13799

@mmitche
Copy link
Member Author

mmitche commented Jun 12, 2023

Waiting on an additional test that just has the fix with the stream disposal.

dibarbet
dibarbet previously approved these changes Jun 12, 2023
Copy link
Member

@dibarbet dibarbet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me!

@mmitche mmitche enabled auto-merge (squash) June 13, 2023 21:20
@mmitche mmitche merged commit 74bd8c5 into dotnet:main Jun 13, 2023
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.

3 participants