alamb commented on a change in pull request #1395:
URL: https://github.com/apache/arrow-datafusion/pull/1395#discussion_r761870564



##########
File path: datafusion/src/scalar.rs
##########
@@ -68,7 +68,7 @@ pub enum ScalarValue {
     /// large binary
     LargeBinary(Option<Vec<u8>>),
     /// list of nested ScalarValue (boxed to reduce size_of(ScalarValue))
-    #[allow(clippy::box_vec)]
+    #[allow(clippy::box_collection)]

Review comment:
       Oh clippy, how wrong you are :)
   
   the benefit is that the overall enum is smaller (as in the size of 
`Vec<ScalarValue>` is like 3 pointers (24 bytes) but a `Box<Vec<ScalarValue>>` 
is 8 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to