Skip to content

Conversation

@cr3ativ3cod3r
Copy link

Description

This PR introduces parallel processing of pack and unpack operations. Previously the layers were packed and unpacked sequentially.

  • In savekitfilelayers, calls to savecontentlayer is now executed in a new goroutine. They are also indexed, so that the order of layers is preserved.
  • In unpackrecursive, calls to unpacklayers is now executed in a new goroutine.
  • For the progress bars, created an instance of mpb.Progress and each goroutine adds a bar to this shared instance.
  • In ignorepaths struct, added a mutex and used it in matches method as MatchesOrParentMatches is not safe for concurrent access.

Linked issues

closes #254

AI-Assisted Code

  • This PR contains AI-generated code that I have reviewed and tested
  • I take full responsibility for all code in this PR, regardless of how it was created

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.

Multi-threading for pack/unpack

1 participant