PT-166788647 FATE efficient maps #183
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "PT-166788647-fate-efficient-maps"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: UlfNorell
Adds support for efficient maps in the contract state. This adds a new FATE value
?FATE_STORE_MAP(Cache, Id)
containing a reference to a map saved in the state and a cache of updates to it. When writing the state we go over the terms and allocate store maps for (sufficiently large) maps and updates to old maps. Seeaeb_fate_maps:allocate_store_maps/2
. Also some code for doing reference counting to enable garbage collection. The bulk of that code is in the aeternity PR.Other minor things
Created by: hanssv
Review: Approved
Created by: lucafavatella
So this may return a negative refcount? (While the type suggests otherwise.)
Created by: lucafavatella
Not clear why not removed.
Created by: lucafavatella
Not clear why not removed.
Created by: lucafavatella
Review: Approved
Unclear possibility for refcount to be negative.
Unclear cost of small-to-large map.
Created by: UlfNorell
Yes indeed. The type should really have
integer()
instead ofpos_integer()
.Merged by: UlfNorell at 2019-08-13 13:51:14 UTC