You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Owen O'Malley (JIRA)" <ji...@apache.org> on 2008/03/20 22:25:24 UTC
[jira] Updated: (HADOOP-3046) Text and BytesWritable's raw
comparators should use the lengths provided instead of rebuilding them from
scratch using readInt
[ https://issues.apache.org/jira/browse/HADOOP-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Owen O'Malley updated HADOOP-3046:
----------------------------------
Attachment: 3046.patch
This patch adds a decodeVIntSize that given the first byte of a vint decodes the total number of bytes. It uses this method to determine the number of bytes to skip over and subtract from the length.
> Text and BytesWritable's raw comparators should use the lengths provided instead of rebuilding them from scratch using readInt
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-3046
> URL: https://issues.apache.org/jira/browse/HADOOP-3046
> Project: Hadoop Core
> Issue Type: Improvement
> Reporter: Owen O'Malley
> Assignee: Owen O'Malley
> Fix For: 0.17.0
>
> Attachments: 3046.patch
>
>
> It would be much faster to use the key length provided by the raw compare function rather than rebuilding the integer lengths back up from bytes twice for every comparison in the sort.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.