You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/05/31 18:39:00 UTC
[jira] [Commented] (AVRO-1928) Python double/float encoding
implementation should use built-in struct support for little endian
[ https://issues.apache.org/jira/browse/AVRO-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853320#comment-16853320 ]
ASF subversion and git services commented on AVRO-1928:
-------------------------------------------------------
Commit b990042604b8bf83db3a137de0f54d726c1af9f0 in avro's branch refs/heads/master from Michael A. Smith
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=b990042 ]
AVRO-1928: Simplify Python float/double encoding (#528)
Switch to using built-in little endian support in the struct
module, instead of explicit bit manipulation.
> Python double/float encoding implementation should use built-in struct support for little endian
> ------------------------------------------------------------------------------------------------
>
> Key: AVRO-1928
> URL: https://issues.apache.org/jira/browse/AVRO-1928
> Project: Apache Avro
> Issue Type: Improvement
> Components: python
> Affects Versions: 1.8.1, 1.8.2, 1.8.3
> Reporter: Shalabh Chaturvedi
> Priority: Minor
>
> The encoding and decoding of double and float types in Python uses unnecessary bit operations and packing/unpacking. Python's {{struct}} module supports little-endian encoding and could be used directly, instead of using the big-endian and then bit-fiddling to reverse the endianness.
> This could have a big impact of encoding/decoding speed of large buffers.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)