Bug 562765 - [code mining] Cancel calculation if the user scrolls and the mining is not visible anymore.
Summary: [code mining] Cancel calculation if the user scrolls and the mining is not vi...
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.16   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-04 06:36 EDT by Till Brychcy CLA
Modified: 2020-06-04 12:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.