Autodesk / arnold-usd

Arnold components for USD
https://www.arnoldrenderer.com/
Other
236 stars 56 forks source link

Improve memory handling of VtArrays #1890

Closed cpichard closed 3 months ago

cpichard commented 3 months ago

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.

autodesk-oss-arnold-bot[bot] commented 3 months ago

Issue synced internally to ARNOLD-14852