Performance improvement to BinaryDecoder.readInt()
--------------------------------------------------

                 Key: AVRO-354
                 URL: https://issues.apache.org/jira/browse/AVRO-354
             Project: Avro
          Issue Type: Improvement
          Components: java
    Affects Versions: 1.3.0
         Environment: koli...@koliver-ws4:~$ uname -a
Linux koliver-ws4 2.6.24-26-generic #1 SMP Tue Dec 1 17:55:03 UTC 2009 x86_64 
GNU/Linux

            Reporter: Kevin Oliver
            Priority: Minor


Able to get a 3-7% improvement on Perf -i by creating a specialized version of 
BinaryDecoder.readInt() that uses the same code as readLong() but uses ints 
instead of long for all its math and bit arithmetic.

The performance improvement is larger on a 32-bit VM (around 7%) than on a 
64-bit VM (around 3%). 

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

Reply via email to