Skip to content

remove extra go routine in read flow #3448

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

Open
wants to merge 1 commit into
base: masterwithgoproc
Choose a base branch
from

Conversation

ashmeenkaur
Copy link
Collaborator

Description

In the read flow when we read data from range reader into the buffer, GCSFuse creates a goroutine which takes care of checking for context cancelled while waiting for data from network. Since interrupts are disabled by default, there is no need of creating this goroutine always for every read request. Create this go routine only if user wants interrupts to be handled.

Link to the issue in case of a bug fix.

b/425859120

Testing details

  1. Manual -

Manual profiline results:
Before optimization:
7FGsbXhaQGDZNPC

After optimization:
5wowPCA4LAvNGNz

  1. Unit tests - NA
  2. Integration tests - NA

Any backward incompatible change? If so, please explain.

NA

@ashmeenkaur ashmeenkaur marked this pull request as ready for review June 25, 2025 10:09
@ashmeenkaur ashmeenkaur requested a review from a team as a code owner June 25, 2025 10:09
@ashmeenkaur ashmeenkaur requested review from raj-prince and removed request for a team June 25, 2025 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant