onflow / atree

Atree provides scalable arrays and scalable ordered maps.
https://onflow.org
Apache License 2.0
39 stars 16 forks source link

Add PersistentSlabStorage.Deltas() #264

Closed fxamacker closed 2 years ago

fxamacker commented 2 years ago

Description

Add PersistentSlabStorage.Deltas() to return number of uncommitted slabs. It can be used by Cadence for memory metering.

Closes #263


codecov-commenter commented 2 years ago

Codecov Report

Merging #264 (4fcf12a) into main (2f2648f) will increase coverage by 0.00%. The diff coverage is 76.92%.

@@           Coverage Diff           @@
##             main     #264   +/-   ##
=======================================
  Coverage   69.05%   69.06%           
=======================================
  Files          14       14           
  Lines        7245     7257   +12     
=======================================
+ Hits         5003     5012    +9     
- Misses       1610     1612    +2     
- Partials      632      633    +1     
Impacted Files Coverage Δ
storage.go 79.54% <76.92%> (-0.10%) :arrow_down:

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 2f2648f...4fcf12a. Read the comment docs.