Skip to content

ndarray size optimization #3

Description

@elius1

If an empty allocator is used, the allocator will still add sizeof(void*) to sizeof(vt::ndarray). This could be optimized away by using a std::tuple for the members thanks to empty base optimization.

Note: Check if this does not introduce performance regressions.

C++20 alternative that is much cleaner: https://en.cppreference.com/w/cpp/language/attributes/no_unique_address

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