komuw / ong

ong, is a Go http toolkit.
MIT License
16 stars 4 forks source link

issues/414: improve id generation #415

Closed komuw closed 4 months ago

komuw commented 4 months ago

Use a simpler id generation algorithm

benchmark:
old-one  465.3 ns/op     3 allocs/op
new-one  206.2 ns/op     2 allocs/op
codecov-commenter commented 4 months ago

Codecov Report

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

Comparison is base (2fb1649) 69.65% compared to head (25fe250) 69.68%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #415 +/- ## ========================================== + Coverage 69.65% 69.68% +0.03% ========================================== Files 52 52 Lines 6192 6192 ========================================== + Hits 4313 4315 +2 + Misses 1556 1555 -1 + Partials 323 322 -1 ```

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