Skip to content

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