Skip to content

Use unordered_set for nonsilence lookup in GetSpkVector#2035

Merged
nshmyrev merged 1 commit into
alphacep:masterfrom
tboccuto:feat/spk-vector-set-lookup
Jul 2, 2026
Merged

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

Conversation

@tboccuto

@tboccuto tboccuto commented May 2, 2026

Copy link
Copy Markdown
Contributor

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|).
@tboccuto

tboccuto commented Jul 2, 2026

Copy link
Copy Markdown
Contributor Author

@nshmyrev

@nshmyrev nshmyrev merged commit e61c01d into alphacep:master Jul 2, 2026
@nshmyrev

nshmyrev commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

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.

2 participants