Bug 562765

Summary: [code mining] Cancel calculation if the user scrolls and the mining is not visible anymore.
Product: [Eclipse Project] Platform Reporter: Till Brychcy <register.eclipse>
Component: TextAssignee: Platform-Text-Inbox <platform-text-inbox>
Status: REOPENED --- QA Contact:
Severity: normal    
Priority: P3 CC: mistria
Version: 4.16   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=560139
Whiteboard:

Description Till Brychcy CLA 2020-05-04 06:36:26 EDT
Extracted from bug 560139 comment 7.

Some code minings take a long time to calculate. It may make sense to cancel there computation, if the user has scrolled and they would not be visible anymore anyway.

Alternative:
I'm not sure if there is currently a single or limited number of threads used to calculate code minings. If yes, there must be some queue for the minings to be calculated. If cancelling is difficult, it might make sense to recheck if they still would be visible when taking them from the queue instead.
Comment 1 Till Brychcy CLA 2020-05-04 07:09:50 EDT
Otherwise, if the number of threads is currently NOT limited, it probably should be.
Comment 2 Mickael Istria CLA 2020-06-04 12:17:00 EDT
Still relevant.