Skip to content

Use unordered_set for nonsilence lookup in GetSpkVector#2035

Open
tboccuto wants to merge 1 commit into
alphacep:masterfrom
tboccuto:feat/spk-vector-set-lookup
Open

Use unordered_set for nonsilence lookup in GetSpkVector#2035
tboccuto wants to merge 1 commit into
alphacep:masterfrom
tboccuto:feat/spk-vector-set-lookup

Conversation

@tboccuto

@tboccuto tboccuto commented May 2, 2026

Copy link
Copy Markdown

No description provided.

Replaces O(n^2) std::find scan with O(1)-avg hash-set lookup,
addressing the existing "would be nice to have faster search"
comment. Total cost drops from O(num_frames * |nonsilence|) to
O(num_frames + |nonsilence|).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant