filecoin-project / specs-actors

DEPRECATED Specification of builtin actors, in the form of executable code.
Other
86 stars 102 forks source link

Optimize miner.State.CleanupExpiredPreCommits #1456

Open Stebalien opened 3 years ago

Stebalien commented 3 years ago

Currently, this loads the pre-commit HAMT once per expiring pre-commit to compute deposit to burn. We then batch delete.

Instead, we should load the pre-commit HAMT once and do a batch delete in one "operation" to save us a bunch of IPLD load operations.