Skip to content

fix(voice): avoid redundant work in speech paths#5977

Open
Dhul-Husni wants to merge 1 commit into
livekit:mainfrom
Dhul-Husni:hotpath-improvements
Open

fix(voice): avoid redundant work in speech paths#5977
Dhul-Husni wants to merge 1 commit into
livekit:mainfrom
Dhul-Husni:hotpath-improvements

Conversation

@Dhul-Husni

Copy link
Copy Markdown
  • _run_eou_detection() already copies the chat context before appending the user message, so callers do not need to copy it first.
  • StreamPacerWrapper treats _sentences as a FIFO queue, so deque.popleft() is a better fit than list.pop(0). The batch length is also tracked as sentences are added instead of recalculating it each loop.

@CLAassistant

CLAassistant commented Jun 5, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@devin-ai-integration devin-ai-integration Bot 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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

@Dhul-Husni Dhul-Husni changed the title fix(voice): avoid redundant work in speech paths fix(voice): avoid repeating work in speech paths Jun 5, 2026
@Dhul-Husni Dhul-Husni changed the title fix(voice): avoid repeating work in speech paths fix(voice): avoid redundant work in speech paths Jun 5, 2026
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.

2 participants