Skip to content

ndarray size optimization #3

@elius1

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

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