Skip to content

feat(JB): limit to 4 threads in handleMessage - #5600

Merged
sestinj merged 1 commit into
mainfrom
pe/jb-limit-thread-parallelism
May 9, 2025
Merged

sestinj merged 1 commit into
mainfrom
pe/jb-limit-thread-parallelism

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented May 9, 2025 •

Copy link
Copy Markdown
Contributor

Description

(Hopefully) resolves #4098

This PR implements advice from @ForNeVeR to limit the number of parallel threads to 4 in our message handling in JetBrains. See #4098 for context on why this is necessary.


Summary by mrge

Limited parallel threads in JetBrains message handling to 4 to prevent UI freezing. This helps keep the IDE responsive during heavy message processing.

@Patrick-Erichsen
Patrick-Erichsen requested a review from a team as a code owner May 9, 2025 23:22
@Patrick-Erichsen
Patrick-Erichsen requested review from tomasz-stefaniak and removed request for a team May 9, 2025 23:22
@netlify

netlify Bot commented May 9, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for continuedev canceled.

Name Link
🔨 Latest commit 43e8486
🔍 Latest deploy log https://app.netlify.com/sites/continuedev/deploys/681e8e45c6f2cb0008a76e0e

@dosubot dosubot Bot added the size:S This PR changes 10-29 lines, ignoring generated files. label May 9, 2025
@Patrick-Erichsen Patrick-Erichsen mentioned this pull request May 9, 2025
3 tasks done
@Patrick-Erichsen Patrick-Erichsen changed the title feat[JB): limit to 4 threads in handleMessage feat(JB): limit to 4 threads in handleMessage May 9, 2025

@sestinj sestinj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this is a strictly safer version of Dispatchers.IO, unless we have a problem with not having enough threads. Will keep an eye on this while in EAP, but this resolves major problems

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 9, 2025
@sestinj
sestinj merged commit 6919729 into main May 9, 2025
@sestinj
sestinj deleted the pe/jb-limit-thread-parallelism branch May 9, 2025 23:59

@ForNeVeR ForNeVeR left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, this should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Continue freezes IDE

3 participants