Optimize sample-accurate path for AudioDelayDspKernel::Process
* Replace modulo operations with test and subtraction * Remove clamping Using spotify.github.io/web-audio-bench, without this CL we have: TEST μs MIN Q1 MEDIAN Q3 MAX Baseline 393 383 390 393 400 403 DelayAutomation-a-rate 1053 1018 1050 1053 1065 1102 With this CL: Baseline 393 387 393 393 397 400 DelayAutomation-a-rate 485 437 443 485 487 513 The optimized version takes about half the time. Bug: 1012198 Change-Id: I643cbf137038714aad5fa2fb66299a8412e667bd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1864415Reviewed-by:Andrew MacPherson <andrew.macpherson@soundtrap.com> Commit-Queue: Raymond Toy <rtoy@chromium.org> Cr-Commit-Position: refs/heads/master@{#707026}
Showing
Please register or sign in to comment