[prev in list] [next in list] [prev in thread] [next in thread]
List: avro-dev
Subject: [jira] [Commented] (AVRO-2696) Improve Avro Double and Float Encode Performance
From: "Hudson (Jira)" <jira () apache ! org>
Date: 2020-03-29 10:50:00
Message-ID: JIRA.13280228.1579296622000.20370.1585479000277 () Atlassian ! JIRA
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/AVRO-2696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070274#comment-17070274 \
]
Hudson commented on AVRO-2696:
------------------------------
SUCCESS: Integrated in Jenkins build AvroJava #839 (See \
[https://builds.apache.org/job/AvroJava/839/])
AVRO-2696: Improve Avro Double and Float Encode Performance (#776) (github: \
[https://github.com/apache/avro/commit/1fe960ef7b3da9222a38db443f56461466114f8f])
* (edit) lang/java/avro/src/main/java/org/apache/avro/io/BinaryData.java
> Improve Avro Double and Float Encode Performance
> ------------------------------------------------
>
> Key: AVRO-2696
> URL: https://issues.apache.org/jira/browse/AVRO-2696
> Project: Apache Avro
> Issue Type: Improvement
> Reporter: David Mollitor
> Assignee: David Mollitor
> Priority: Minor
> Fix For: 1.10.0
>
>
> I was looking at how Avro encodes Doubles and Floats and comparing it to Java's.
> So, I checked it out and found that the Java version for Floats is faster than Avro \
> using the Avro perf tests: {code}
> # Avro Impl
> FloatTest.encode thrpt 3 273709210.133 ± 49629107.871 ops/s
> FloatTest.encode thrpt 3 271515727.631 ± 57405372.266 ops/s
> # Java Impl
> FloatTest.encode thrpt 3 278234438.923 ± 34633982.243 ops/s
> FloatTest.encode thrpt 3 284801936.136 ± 52273884.157 ops/s
> {code}
> Interestingly, I wasn't able to reproduce this gain with Doubles. Avro's version \
> was faster. However, we can remove the bitwise mask (Java doesn't bother to do \
> it). https://github.com/openjdk/jdk/blob/6bab0f539fba8fb441697846347597b4a0ade428/src/java.base/share/classes/java/io/Bits.java#L105
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic