Skip to content

Avoid unnecessary copies of objects #3157

Description

@Caball009

Sometimes large / expensive copies are made when const& could be used instead.

Major culprits:

  • 30+ cases of Matrix3D (regex Matrix3D\s+\w+\s*=)
  • ~10 cases of Squad::getLiveObjects
  • 2 cases of PartitionSolver::getSolution

There are other cases beside these throughout the code, probably many more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MinorSeverity: Minor < Major < Critical < BlockerPerformanceIs a performance concern

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions