Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run one completion sampler #7897

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

lahodaj
Copy link
Contributor

@lahodaj lahodaj commented Oct 22, 2024

Recently, I've added the self sampler for long completion. But, turns out there may be multiple samplers running in parallel, causing havoc.

This patch attempts to only run one sampler, preferring the first one. Alternative would be to cancel the current sampler when a new one is requested, preferring the last sampler.

@lahodaj lahodaj added Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests labels Oct 22, 2024
@lahodaj lahodaj added this to the NB24 milestone Oct 22, 2024
@lahodaj lahodaj requested a review from jtulach October 22, 2024 15:34
@MartinBalin
Copy link
Contributor

I can merge into delivery once reviewed...

Copy link
Contributor

@jtulach jtulach left a comment

Choose a reason for hiding this comment

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

Having a single sampler should make the CPU usage better! Thank you.

@MartinBalin MartinBalin merged commit 240014d into apache:delivery Oct 29, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) LSP [ci] enable Language Server Protocol tests VSCode Extension [ci] enable VSCode Extension tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants