Skip to content

Use binary search for speech timestamp boundary lookup - #1716

Closed
nemo-crypto wants to merge 1 commit into
SYSTRAN:masterfrom
nemo-crypto:nemo/speech-boundary-bisect
Closed

nemo-crypto wants to merge 1 commit into
SYSTRAN:masterfrom
nemo-crypto:nemo/speech-boundary-bisect

Conversation

@nemo-crypto

Copy link
Copy Markdown

Summary

Original-time restoration scans all chunk endpoints for each end timestamp. Use binary search for both boundaries while preserving left-inclusive end behavior, right-inclusive start behavior, and duplicate endpoint selection.

Verification

Seven boundary tests and the full test suite passed (26 tests). On a synthetic 12,000-chunk map, 6,000 end lookups returned identical indices and the median of five runs dropped from 96.5 ms to 1.13 ms.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants