Issue Details (XML | Word | Printable)

Key: HADOOP-3274
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Tsz Wo (Nicholas), SZE
Reporter: Tsz Wo (Nicholas), SZE
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

The default constructor of BytesWritable should not create a 100-byte array.

Created: 17/Apr/08 11:04 PM   Updated: 22/Aug/08 07:50 PM
Return to search
Component/s: io
Affects Version/s: None
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works 3274_20080417.patch 2008-04-17 11:08 PM Tsz Wo (Nicholas), SZE 0.8 kB

Hadoop Flags: Reviewed
Resolution Date: 22/Apr/08 12:34 AM


 Description  « Hide
The default byte array should be an empty array and the empty array should be stored in a static final variable. Then, there is no unnecessary memory allocation.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #650332 Tue Apr 22 00:35:59 UTC 2008 shv HADOOP-3274. The default constructor of BytesWritable creates empty byte array. Contributed by Tsz Wo (Nicholas), SZE.
Files Changed
MODIFY /hadoop/core/trunk/CHANGES.txt
MODIFY /hadoop/core/trunk/src/java/org/apache/hadoop/io/BytesWritable.java