Skip to content

Change ballot from a pointer to instance #113

@yifan-gu

Description

@yifan-gu

For example, in Accept, I don't see the reason why we use pointer for the ballot. Since we actually do a Clone() to make a copy of the ballot. I think a normal ballot(not a pointer) is sufficient. Also it can reduce some GC pressure.

So in order to make the change, we will need to replace NewBallot(x,y,z) with Ballot{x,y,z} in instance.go and other related files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions