rluvaton commented on code in PR #9086:
URL: https://github.com/apache/arrow-rs/pull/9086#discussion_r2681921917


##########
arrow-json/src/reader/struct_array.rs:
##########
@@ -205,3 +241,19 @@ fn struct_fields(data_type: &DataType) -> &Fields {
         _ => unreachable!(),
     }
 }
+
+fn build_field_index(fields: &Fields) -> Option<HashMap<String, usize>> {
+    const FIELD_INDEX_LINEAR_THRESHOLD: usize = 16;

Review Comment:
   Can you add a comment about that const please, why that number



-- 
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