Closed fxamacker closed 1 year ago
Merging #314 (3c855fb) into main (bc0184e) will decrease coverage by
0.02%
. The diff coverage is71.42%
.
@@ Coverage Diff @@
## main #314 +/- ##
==========================================
- Coverage 64.61% 64.59% -0.02%
==========================================
Files 14 14
Lines 7991 7997 +6
==========================================
+ Hits 5163 5166 +3
- Misses 2152 2156 +4
+ Partials 676 675 -1
Impacted Files | Coverage Δ | |
---|---|---|
array_debug.go | 51.65% <0.00%> (ø) |
|
settings.go | 81.25% <60.00%> (-11.06%) |
:arrow_down: |
array.go | 69.86% <100.00%> (ø) |
|
basicarray.go | 49.78% <100.00%> (ø) |
|
map.go | 66.79% <100.00%> (+0.09%) |
:arrow_up: |
Nice! Does this need a state migration?
Nice! Does this need a state migration?
@turbolent Yes, this is part of prep work for Atree Register Inlining (#292) which requires migration anyway.
Closes #313 Updates #296 #292 https://github.com/onflow/flow-go/issues/1744
Description
Previously, both max map key size and max map value size were the same (about half of max map element size). However, key size can be much smaller than max limit and max value size didn't benefit from smaller key.
Optimize this by computing max map value size to subtract encoded key size from max map element size. So large value can be stored along with small key to reduce number of registers.
While at it, also replace exported settings with exported functions.
main
branchFiles changed
in the Github PR explorer