avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalabh Chaturvedi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1928) Python double/float encoding implementation should use built-in struct support for little endian
Date Tue, 27 Sep 2016 18:05:20 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15526966#comment-15526966
] 

Shalabh Chaturvedi commented on AVRO-1928:
------------------------------------------

Sent pull request via github: https://github.com/apache/avro/pull/132

> 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: Avro
>          Issue Type: Improvement
>          Components: python
>    Affects Versions: 1.8.1
>            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
(v6.3.4#6332)

Mime
View raw message