Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2172

Java compiler allocates optionals array for every struct with an optional field

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • Java - Compiler
    • None
    • Patch Available

    Description

      optionals has the same values for every instance and wastes a lot of memory when one instantiates many Thrift objects. Note that optionals is not read from or written to and could be removed.

      Attachments

        1. THRIFT-2172.patch
          1 kB
          Andrew Gaul

        Activity

          People

            roger Roger Meier
            gaul Andrew Gaul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: