Skip to content

Improve memory handling of VtArrays #1890

@cpichard

Description

@cpichard

Describe the feature you'd like
When we extract a VtArray from a VtValue we sometime use a copy instead of a const reference, as the copy on write of VtArray shouldn't duplicate the buffer. However, when we call functions or operators on the extracted array, a copy of the whole buffer might be happening as the function called is not the const one. It can lead to unnecessary increase of memory.
We want to chase down where it happens in the code and fix those redundant copies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions