scovich commented on issue #7831: URL: https://github.com/apache/arrow-rs/issues/7831#issuecomment-3020540274
> We could reduce the footprint of object and list by storing `VariantMetadata` by reference instead of by value. But if we shrink `VariantMetadata` that would only save 16 bytes while complicating the user surface with additional lifetime management worries. Actually,`&VariantMetadata` is a thin pointer, so storing a reference would save 24 bytes (32 => 8 bytes). Combining that with the previously suggested changes would reduce `VariantList` and `VariantObject` to 40 bytes each. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org