Skip to content

Store aid trackers inline in LowCountState #396

Open

Description

@edongashi

Why do we have a list of pointers here:

AidTrackerState *trackers[FLEXIBLE_ARRAY_MEMBER];

Why not store AidTrackerStates by value, avoiding the extra pallocs?

Activity

  1. cristianberneanu commented on Jun 29, 2022

    @cristianberneanu
    Collaborator

    I think this was implemented so mainly to try to be consistent with state handling in other locations and to keep it easier in the future to make the state variable size, if the need arises.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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