Performance Issues When Adding Highlight Comments to a Review

Benjamin Lutz
Benjamin Lutz
  • Updated
Audience: Everyone

Products and Versions Covered: Cloud/CVC, Jama Connect® version(s):  9.32.x

Summary

Users may experience slowness when highlighting text in a review to add an inline comment.  When highlighting a section of text, it could take up to several minutes for the pop-up window to add a comment to appear. 

Resolution

The issue was caused by an unconditional React state update (in ReviewPanelItems.onCommentTooltipOpened) triggered during the highlight process, which led to excessive and cascading component re-renders. When a highlight action occurred, this unconditional state update caused React to repeatedly re-render a very large component subtree, resulting in a long freezing period. The problem was not caused by the highlighting library itself or by DOM mutations alone, but by React repeatedly re-rendering expensive UI structures in response to redundant state updates.

A defect was filed for this (SOS-DEF-9333), but has not yet been scheduled for a specific release as of today.  However, this should be fixed in a future version.

Additional Resources 

Feedback:
We welcome your input! Please sign in to leave any comments, suggestions, or improvement ideas below.

 

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.