Skip to content

Profile usage of std containers #25

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions