hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Kang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-6672) BytesWritable.write(buf) use much more CPU in writeInt() then write(buf)
Date Fri, 02 Apr 2010 13:36:27 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-6672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiao Kang updated HADOOP-6672:
------------------------------

    Attachment: BytesWritable.java.patch

Patch attached.

Transfer int to a four bytes buffer ints and use write(ints, 0, 4) to reduce invocation count
of write. 

> BytesWritable.write(buf) use much more CPU in writeInt() then write(buf)
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-6672
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6672
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: io
>    Affects Versions: 0.20.2
>            Reporter: Xiao Kang
>         Attachments: BytesWritable.java.patch, screenshot-1.jpg
>
>
> BytesWritable.write() use nearly 4 times of CPU in wirteInt() as write buffer. It may
be optimized.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message