[jira] Created: (HADOOP-6476) o.a.h.io.Text - setCapacity does not shrink size

2010-01-01 Thread Kay Kay (JIRA)
o.a.h.io.Text - setCapacity does not shrink size - Key: HADOOP-6476 URL: https://issues.apache.org/jira/browse/HADOOP-6476 Project: Hadoop Common Issue Type: Bug Reporter: Kay Kay

Re: clearing o.a.h.io.Text

2010-01-01 Thread Kay Kay
On Thu, Dec 31, 2009 at 11:03 PM, Owen O'Malley wrote: > > On Dec 30, 2009, at 12:36 AM, Kay Kay wrote: > > In o.a.h.io.Text - the clear method currently just resets length to 0, >> while not doing anything about the bytes internally. >> >> Curious to know the thoughts behind the decision (to le

Re: clearing o.a.h.io.Text

2010-01-01 Thread Owen O'Malley
On Jan 1, 2010, at 2:39 AM, Kay Kay wrote: I believe that behavior would be surprising to the user if they were expecting the object resources to be released entirely, by calling the clear() method. I disagree. Clear only promises to reset to the empty string. It doesn't imply freeing reso