Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2257

Check for unexpected instances of boxing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.5.0
    • None
    • Back End, Clean Ups
    • None

    Description

      We use the AnyVal types of Maybe (and specialized MaybeFoo types) and DataValue to avoid the need to box objects. However, there are times when these get boxed unexpectedly. We should look through and make sure non of this boxing happens at a time when we care if it gets boxed or not.

      To check, we can dissasemble the compiled code:

      javap -c -l `find . -name *.class | grep scala-2.12` > src.bytecode

      then search the resulting assembly for strings along the lines of DataValue."<init>", which would indicate boxing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            brandon.sloane Brandon Sloane
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: