holiman / billy

Very simple datastore
BSD 3-Clause "New" or "Revised" License
50 stars 7 forks source link

db, shelf: ensure magic is correct, speed up shelf size code paths #22

Closed karalabe closed 4 months ago

karalabe commented 4 months ago

This PR makes a couple tweaks to the shelf opening code:

codecov[bot] commented 4 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (1c7e68d) 87.08% compared to head (8a5a33e) 86.78%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #22 +/- ## ========================================== - Coverage 87.08% 86.78% -0.31% ========================================== Files 5 5 Lines 395 401 +6 ========================================== + Hits 344 348 +4 - Misses 36 37 +1 - Partials 15 16 +1 ```