Skip to content

Playfield constructor performance #2

Description

@ChristophWeigert

he biggest performance issue is the Playfield constructor.
dont know if i can change this with adding something like preallocating 5000 (or so) boards, and
just override the existing old/unused playfields in the posmoves-List.
(like:
int i = getNextFreeSpace(posmoves);
posmoves[i].deepCopy(p);
posmoves[i].doAction(a);

instead of

Playfield pf = new Playfield(p);
pf.doAction(a);
)

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions