|
[
Permlink
| « Hide
]
Suresh Srinivas added a comment - 04/Nov/08 12:45 AM
Thanks Nicholas for pointing out, GenerationStamp cannot be reused. But the Block object can be reused.
>Instead of getting the edit stream length in termination condition, a local variable should be used to do the same
Won't the Java compiler do this on its own? I am not sure if the method call in termination condition is optimized. I know that loops may be optimized from condition < len to condition <= 0. Based on the tests I ran, moving the method call out of terminating condition improves the performance.
Codes look good but the patch is out dated. Need sync with trunk.
New patch uploaded. Here are the results of testing the patch. No tests included as the functionality is tested by existing tests.
[exec] -1 overall. [exec] +1 @author. The patch does not contain any @author tags. [exec] -1 tests included. The patch doesn't appear to include any new or modified tests. [exec] +1 javadoc. The javadoc tool did not generate any warning messages. [exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings. [exec] +1 findbugs. The patch does not introduce any new Findbugs warnings. [exec] +1 Eclipse classpath. The patch retains Eclipse classpath integrity. -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12393485/4583.patch against trunk revision 712305. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. -1 javadoc. The javadoc tool appears to have generated 1 warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 Eclipse classpath. The patch retains Eclipse classpath integrity. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/3552/testReport/ This message is automatically generated. The javadoc warning is unrelated. See
I just committed this. Thanks, Suresh!
Integrated in Hadoop-trunk #655 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/655/
. Several code optimizations in HDFS. (Suresh Srinivas via szetszwo) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||