Skip to content

Profile usage of std containers #25

@alexallmont

Description

@alexallmont

Whilst working on #22, I found some cases where C++ containers may not be performing as well as they could:

  • std::vectors of std::unique_ptr where not necessary
  • std::vectors not reserved up front
  • push_back used instead of emplace_back

These could increase the number of allocations happening, though may not be an issue depending on how much they are used. Raising this ticket to capture this in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions