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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment