Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1928

Python double/float encoding implementation should use built-in struct support for little endian

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.8.1, 1.8.2, 1.10.0
    • 1.9.2
    • python
    • None

    Description

      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.

      Attachments

        Activity

          People

            kojiromike Michael A. Smith
            shalabh Shalabh Chaturvedi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: