Skip to content

Opti audio stream processing#150

Merged
teamclouday merged 33 commits intoteamclouday:mainfrom
wiiznokes:opti-stream-process
May 4, 2026
Merged

Opti audio stream processing#150
teamclouday merged 33 commits intoteamclouday:mainfrom
wiiznokes:opti-stream-process

Conversation

@wiiznokes
Copy link
Copy Markdown
Contributor

@wiiznokes wiiznokes commented Apr 21, 2026

There is a lot of allocation / potential optimization we can do in this hot path.

The benchmark on master is

bench_process time: [123.76 µs 123.78 µs 123.80 µs]

Lets see where we can go

@wiiznokes wiiznokes force-pushed the opti-stream-process branch from d0fb4bf to a63a180 Compare April 22, 2026 16:35
@wiiznokes wiiznokes marked this pull request as ready for review April 24, 2026 15:52
@wiiznokes
Copy link
Copy Markdown
Contributor Author

wiiznokes commented Apr 24, 2026

So, in the end, there is no significant performance gain.
On linux, we see a real gain for resampling, when updating rubato to version 2.0 (15.407 µs to 13.536 µs in average).
This is because the new rubato release provide a way to not copy the input and output in a buffer.
The other change are honestly not significant. But i don't think that they complicate the code.

Also, the update of rubato fix some setup, like input = 41000, output = 41000, speexdsp activated.

@teamclouday
Copy link
Copy Markdown
Owner

Sorry just saw this. Thanks for the updates!

@teamclouday teamclouday merged commit 22e0b9b into teamclouday:main May 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants