Commit 34b695a
authored
fix(amazonq): Improve indexing auto start-stop strategy #5929
## Problem
When multiple IDE instances are opened at the same time, the `@workspace
` indexing can increase CPU usage to a point that system fan needs to
engage. IDE can be slow if it is older devices like intel i5 or i7 Mac
OS.
## Solution
When multiple IDE instances are opened at the same time, the
`@workspace` indexing can increase CPU usage to a point that system fan
needs to engage. IDE can be slow if it is older devices like intel i5 or
i7 Mac OS. This PR is to improve indexing auto start-stop strategy,
detect CPU usage more frequently and pause indexing more aggressively
whenever system total CPU usage goes up. In the mean time, further
reduce CPU usage for old Intel i5, i7 devices, make sure one IDE
instance at most utilize one physical core and all instance combined
cannot exceed 1 for any extended period of time more than a few seconds,
unless user explicit allows more CPU usage in settings. Other mechanisms
are implemented to stop indexing if system available memory is small.1 parent 1486e3a commit 34b695a
File tree
2 files changed
+5
-1
lines changed- packages
- amazonq/.changes/next-release
- core/src/amazonq/lsp
2 files changed
+5
-1
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments