at-wat / ebml-go

A pure Go implementation of bi-directional EBML encoder/decoder
Apache License 2.0
79 stars 14 forks source link

Improve unmarshal performance #149

Closed at-wat closed 3 years ago

at-wat commented 3 years ago

master branch

BenchmarkUnmarshal-32   535236   10538 ns/op   2949 B/op   176 allocs/op

this PR 3aff69b

BenchmarkUnmarshal-32   589106   9432 ns/op   2827 B/op   103 allocs/op

2e16459

BenchmarkUnmarshal-32   566564   9871 ns/op   2906 B/op   144 allocs/op
codecov[bot] commented 3 years ago

Codecov Report

Merging #149 (21e0793) into master (f769d2b) will decrease coverage by 0.06%. The diff coverage is 97.95%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #149      +/-   ##
==========================================
- Coverage   99.22%   99.15%   -0.07%     
==========================================
  Files          23       23              
  Lines        1291     1308      +17     
==========================================
+ Hits         1281     1297      +16     
- Misses          5        6       +1     
  Partials        5        5              
Impacted Files Coverage Δ
value.go 99.66% <96.00%> (-0.34%) :arrow_down:
block.go 100.00% <100.00%> (ø)
elementtable.go 100.00% <100.00%> (ø)
unlacer.go 100.00% <100.00%> (ø)
unmarshal.go 98.84% <100.00%> (+<0.01%) :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 f769d2b...21e0793. Read the comment docs.