[ 
https://issues.apache.org/jira/browse/HADOOP-6949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12989777#comment-12989777
 ] 

Konstantin Shvachko commented on HADOOP-6949:
---------------------------------------------

The compatible way of doing this is really nice. A couple of questions.

# Can/should we extend this to arrays of non-primitive types? This should 
benefit return types for calls like listStatus() and getBlockLocations() on a 
large directory.
# Is it enough to increment rpc version only? This changes serialization of 
each and every VersionedProtocol. So formally they all should be incremented.
# This seems to be a very important optimization. Would like to raise the 
question of applying it to 0.22.

> Reduces RPC packet size for primitive arrays, especially long[], which is 
> used at block reporting
> -------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-6949
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6949
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: io
>            Reporter: Navis
>            Assignee: Matt Foley
>             Fix For: 0.23.0
>
>         Attachments: ObjectWritable.diff, arrayprim.patch, arrayprim_v4.patch
>
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> Current implementation of oah.io.ObjectWritable marshals primitive array 
> types as general object array ; array type string + array length + (element 
> type string + value)*n
> It would not be needed to specify each element types for primitive arrays.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to