Skip to content

Optimize endpointer performance #425

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: main
Choose a base branch
from

Conversation

lenzo-ka
Copy link
Contributor

  • Cache timestamp callbacks to reduce redundant calls (2-3x per frame)
  • Implement incremental speech counting (O(n) to O(1) per frame)
  • Pre-allocate scratch buffers for linearization to avoid malloc/free
  • Add timestamp helper functions for cleaner code organization

These optimizations provide 5-10% overall speedup in typical usage without changing the API or affecting accuracy.

- Cache timestamp callbacks to reduce redundant calls (2-3x per frame)
- Implement incremental speech counting (O(n) to O(1) per frame)
- Pre-allocate scratch buffers for linearization to avoid malloc/free
- Add timestamp helper functions for cleaner code organization

These optimizations provide 5-10% overall speedup in typical usage
without changing the API or affecting accuracy.
@lenzo-ka lenzo-ka requested a review from dhdaines July 29, 2025 14:36
@dhdaines dhdaines added this to the 5.1.0 milestone Aug 20, 2025
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