muktihari / fit

A FIT SDK for decoding and encoding Garmin FIT files in Go supporting FIT Protocol V2.
BSD 3-Clause "New" or "Revised" License
24 stars 2 forks source link

perf: round encoder buffer size to nearest sizeclasses #416

Closed muktihari closed 3 weeks ago

muktihari commented 3 weeks ago

Previously on PR #415, we updated encoder's buffer size to 1537, however we found that this size can be rounded into nearest golang's sizeclasses: https://go.dev/src/runtime/sizeclasses.go, which is 1536.

codecov-commenter commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (fd72df2) to head (bfe47cf).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #416 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 41 41 Lines 3695 3695 ========================================= Hits 3695 3695 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.