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

Python Avro match_schemas called redundantly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.7.4
    • None
    • python
    • None

    Description

      DatumReader.match_schemas(writers_schema, readers_schema) is called on every single read from the DatumReader. However, for almost every read, the schemas used are the object members self.writers_schema and self.readers_schema. match_schemas should be checked only once in this case, and only when the object members are modified. This takes up 20% of my parse time upon profiling.

      Attachments

        1. AVRO-1304.patch
          28 kB
          Uri Laserson

        Activity

          People

            Unassigned Unassigned
            laserson Uri Laserson
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: