Map garbarge collection bug #204
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Reference counting for store maps is too conservative for nested map updates in some cases, leading to maps being copied instead of updated inplace. Example:
Adding two keys makes the outer map big enough to be given store handling and successive
set
s to one of the keys then requires linear gas instead of constant, since the inner map is copied instead of updated inplace.Work-around: avoid nested maps.