go-message icon indicating copy to clipboard operation
go-message copied to clipboard

Optimize Entity.WriteTo when encoding/charset are unchanged

Open emersion opened this issue 5 years ago • 2 comments

Closes: https://github.com/emersion/go-message/issues/86

emersion avatar Apr 27 '20 07:04 emersion

Codecov Report

Merging #87 into master will increase coverage by 0.20%. The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   79.49%   79.70%   +0.20%     
==========================================
  Files          15       15              
  Lines         995     1005      +10     
==========================================
+ Hits          791      801      +10     
  Misses        128      128              
  Partials       76       76              
Impacted Files Coverage Δ
writer.go 72.54% <83.33%> (+1.12%) :arrow_up:
entity.go 93.22% <100.00%> (+1.06%) :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 f828d02...584bd27. Read the comment docs.

codecov-io avatar Apr 27 '20 07:04 codecov-io

This doesn't work if Entity.Body is set to something else by the library user.

emersion avatar Apr 29 '20 15:04 emersion