eclipse-platform / eclipse-platform/eclipse.platform
Slow copy-from-Console with many links inside
- Dominant language
- Java
- Stars
- 165
- Forks
- 174
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 22
Description
If the console output contains many lines copying (ctrl+c) the output to clipboard becomes very slow. For example try to copy 100_000 lines already lags some seconds. Seems to be O(n^2) where n is number of lines.
Example to reproduce a long console output :
```
public class Main {
public static void main(String[] args) {
for (int i = 0; i < 100_000; i++) {
System.out.println("org.eclipse.ui.console.TextConsoleViewer.findPosition(TextConsoleViewer.java:497)");
}
}
}
```
Almost all time is spend in org.eclipse.ui.console.TextConsoleViewer.findPosition(int, int, Position[])

The copied text is ~8MB:

Contributor guide
Assessment
This issue has not been assessed yet.