Skip to content

Make "getCandidateInLead()" to not iterate trough the list. #4

@Coec0

Description

@Coec0

Currently it iterates trough the list off all candidates. It would be better to have a variable that is a pointer to the leading candidate. This pointer would get checked after every vote cast to see if there is a new leader and update the pointer if so.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions