Skip to content

Use stdlibs heap instead of the heap in common #2432

@ValarDragon

Description

@ValarDragon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T:code-hygieneGeneral cleanup and restructuring of code to provide clarity, flexibility, and modularity.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions