You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2023/03/23 14:50:09 UTC

[GitHub] [arrow-rs] tustvold commented on a diff in pull request #3917: Zero-copy conversion from Vec to PrimitiveArray

tustvold commented on code in PR #3917:
URL: https://github.com/apache/arrow-rs/pull/3917#discussion_r1146318767


##########
arrow-array/src/record_batch.rs:
##########
@@ -603,7 +603,7 @@ mod tests {
         let record_batch =
             RecordBatch::try_new(Arc::new(schema), vec![Arc::new(a), Arc::new(b)])
                 .unwrap();
-        assert_eq!(record_batch.get_array_memory_size(), 672);
+        assert_eq!(record_batch.get_array_memory_size(), 628);

Review Comment:
   This is because Vec doesn't round up to a multiple of 64 bytes



-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org