avro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject [1/5] avro git commit: AVRO-2056: DirectBinaryEncoder Creates Buffer For Each Call To writeDouble
Date Fri, 28 Jul 2017 07:17:19 GMT
Repository: avro
Updated Branches:
  refs/heads/master b1233fd64 -> 14488e35b


AVRO-2056: DirectBinaryEncoder Creates Buffer For Each Call To writeDouble


Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/3801888f
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/3801888f
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/3801888f

Branch: refs/heads/master
Commit: 3801888fa8c9dc96a1613e41cbc33800bc84f1b4
Parents: b1233fd
Author: BELUGA BEHR <dam6923@gmail.com>
Authored: Thu Jul 27 09:42:13 2017 +0200
Committer: Gabor Szadovszky <gabor@apache.org>
Committed: Thu Jul 27 09:42:13 2017 +0200

----------------------------------------------------------------------
 CHANGES.txt                                                       | 3 +++
 .../src/main/java/org/apache/avro/io/DirectBinaryEncoder.java     | 1 -
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/3801888f/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index f1ff089..d06aa3e 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -58,6 +58,9 @@ Trunk (not yet released)
 
     AVRO-2021: uuid logical type is not documented (Nandor Kollar via gabor)
 
+    AVRO-2056: DirectBinaryEncoder Creates Buffer For Each Call To writeDouble
+    (Beluga Behr via gabor)
+
   BUG FIXES
 
     AVRO-1741: Python3: Fix error when codec is not in the header.

http://git-wip-us.apache.org/repos/asf/avro/blob/3801888f/lang/java/avro/src/main/java/org/apache/avro/io/DirectBinaryEncoder.java
----------------------------------------------------------------------
diff --git a/lang/java/avro/src/main/java/org/apache/avro/io/DirectBinaryEncoder.java b/lang/java/avro/src/main/java/org/apache/avro/io/DirectBinaryEncoder.java
index ff5b52c..ce22ee5 100644
--- a/lang/java/avro/src/main/java/org/apache/avro/io/DirectBinaryEncoder.java
+++ b/lang/java/avro/src/main/java/org/apache/avro/io/DirectBinaryEncoder.java
@@ -110,7 +110,6 @@ public class DirectBinaryEncoder extends BinaryEncoder {
 
   @Override
   public void writeDouble(double d) throws IOException {
-    byte[] buf = new byte[8];
     int len = BinaryData.encodeDouble(d, buf, 0);
     out.write(buf, 0, len);
   }


Mime
View raw message