Description
The forthcoming patch improves the performance of BinaryDecoder.readLong(), readFloat() and readDouble().
The test-patch has a command-line program Perf in org.apache.avro.io in the (test part of the source directory) which tests the performance of readInt() (which calls readLong()) readFloat() and readDouble(). On my machine, the patch improves the performance by 10% for readInt() and about 50% for readFloat() and readDouble().
The idea is to unroll the loops in readLong(), readFloat() and readDouble(). There is a small change in doReadBytes() which checks for most common condition before less common ones.
Attachments
Attachments
Issue Links
- relates to
-
AVRO-327 Performance improvements to BinaryDecoder.readLong()
- Closed