Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7736

SWF Viewer - Performance improvements

XMLWordPrintable

    • 2022 Week 32-34 (from Aug 8), 2022 Week 35-37 (from Aug 29), 2022 Week 38-40 (from Sept 19), 2022 Week 41-43 (from Oct 10), 2022 Week 44-46 (from Oct 31)

      Goals

      Identify and fix the most critical performance issues for the SWF Diagram Viewer DP2 release.

      NOTE: Some performance metrics for DP1 can be found at [1]

      Actions

      1. Check potential actions to do to improve performance at [1]
      2. Identify & Remove/drop unnecessary computations/operations
      3. Go deeper into concrete function implementations to reduce computation cost (eg: loops, caching)
      4. Image & loading

       [1] https://issues.redhat.com/browse/KOGITO-7041?focusedCommentId=20572270&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-20572270

      Performance Improvements

      1. Do not execute post Transform operations to fit the diagram to the canvas after it is loaded if it fits as is. 
      2. Removal of the background color layer. Now it is possible to set background color directrly on canvas element without adding an extra costly layer.
      3. Tweek of the ResizeObserver implementation removing uncessessary calls on canvas initialization.
      4. Removal of uncessary Refresh and Batch calls
      5. Replace ImageLoader for native ImageBitmap implementation  
        • Note: Only toobar icons are being loaded at the moment. Use the plugin in "Edit" mode to check the icons.

       

      Performance Measurements

      On fist load shows an improvement of 32%.

      On secondary loads an average improvement of 14/%.

      Note: The operations in the tables below are mostly asynchronous, so the numbers can be a bit erratic. It means every time you run the tests slighlty different numbers will come out. Sometimes better in some operations sometimes worse in others. However, it is possible to notice improvements when looking ate the overall picture.  

              handreyrc Handrey Cunha
              romartin@redhat.com Roger Martinez
              Dominik Hanak Dominik Hanak
              Dominik Hanak Dominik Hanak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: