[prev in list] [next in list] [prev in thread] [next in thread] 

List:       avro-dev
Subject:    [jira] [Created] (AVRO-1928) Python double/float encoding implementation should use built-in struct 
From:       "Shalabh Chaturvedi (JIRA)" <jira () apache ! org>
Date:       2016-09-26 21:14:20
Message-ID: JIRA.13007713.1474924417000.667209.1474924460468 () Atlassian ! JIRA
[Download RAW message or body]

Shalabh Chaturvedi created AVRO-1928:
----------------------------------------

             Summary: 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic