web3infra-foundation / mega

Mega is an unofficial open source implementation of Google Piper.
https://gitmega.dev
Apache License 2.0
155 stars 30 forks source link

Improve git-pack encode performance. #600

Open Hou-Xiaoxuan opened 6 days ago

Hou-Xiaoxuan commented 6 days ago

The current performance of Git pack encoding is poor and takes too long, causing operations like cloning to be excessively slow, as seen in issue #571 . The main time-consuming factor is the zlib compression process.

Possible solutions:

  1. Try alternative compression algorithms/libraries.
  2. The current encoding is sequential, consider changing it to parallel processing.