Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-1449

Performance: Use Java HashMap, not Scala HashMap, which allocates constantly.

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • deferred
    • 1.1.0
    • Back End, Performance
    • None

      Scala's mutable HashMap allocates a Some[T] object for every successful get(key) call.

      This is unacceptable overhead for something done so frequently.

      Use Java's HashMap instead, where get(key) returns a value or null, and never allocates anything.

              Unassigned Unassigned
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: