uber / kraken

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

Improved new meta info creation #263

Closed EltonzHu closed 4 years ago

EltonzHu commented 4 years ago

Fixed issue#262: When creating a new meta info, bencode marshal function is called twice which is unnecessary and decreasing performance.

codecov[bot] commented 4 years ago

Codecov Report

Merging #263 into master will decrease coverage by 0.00%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #263      +/-   ##
==========================================
- Coverage   66.14%   66.14%   -0.01%     
==========================================
  Files         184      184              
  Lines        9101     9098       -3     
==========================================
- Hits         6020     6018       -2     
+ Misses       2321     2320       -1     
  Partials      760      760              
Impacted Files Coverage Δ
core/metainfo.go 67.12% <ø> (+1.33%) :arrow_up:
utils/dedup/interval_trap.go 90.00% <0.00%> (-10.00%) :arrow_down:
lib/torrent/scheduler/dispatch/dispatcher.go 49.33% <0.00%> (+0.33%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 909c605...7b0a3cc. Read the comment docs.