-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
T:code-hygieneGeneral cleanup and restructuring of code to provide clarity, flexibility, and modularity.General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Milestone
Description
Currently the only place we use our own heap implementation is for the validator set. We could easily refactor to utilize to use the stdlibs heap implementation, which would likely end up being more efficient. (As that does the O(N) heapify unlike our code which does an N log(N) process. If the stdlib's heap interface is deemed as a pain to implement, then we should adapt cmn.Heap to utilize the stdlib's heap implementation imo.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
T:code-hygieneGeneral cleanup and restructuring of code to provide clarity, flexibility, and modularity.General cleanup and restructuring of code to provide clarity, flexibility, and modularity.