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

Decrease number of allocations related to DIComplex

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2.0.0
    • None
    • Back End
    • None

      While profiling, it became very clear that a great deal of allocations are related to the slots in a DIComplex element. Many Maybe's are allocated (even though it's a value class, it's in an array, so they must be allocated). Additionally, many int arrays are allocated for saving the state of a dicomplex. It's unclear how much of a performance impact these allocations are causing, but if these arrays are very sparse, switching to something like a Map or some other data structure that is efficient for sparse arrays should decrease the number of allocations.

      We may need to due some performance testing to see if these allocations are even a problem, but they are certainly up there in some of the most numerous allocations.

              dthompson David Thompson
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: