uber / kraken

P2P Docker registry capable of distributing TBs of data in seconds
Apache License 2.0
6.14k stars 423 forks source link

Bencode Marshal is called twice #262

Closed EltonzHu closed 4 years ago

EltonzHu commented 4 years ago

Describe the bug When creating a new meta info, bencode marshal function is called twice which is unnecessary and decreasing performance.

To Reproduce Steps to reproduce the behavior: Noticing this by going through the code.

Expected behavior Marshal operation is only needed to call once when creating a meta info.

Environments This affects all environments.

EltonzHu commented 4 years ago

Created an PR#263 for fixing this.

EltonzHu commented 4 years ago

This PR is merged into master branch. Close this issue.