Open
Bug 2093385
Opened 1 day ago
Updated 23 hours ago
Use faster exponentiation in the Web Audio compressor
Categories
(Core :: Web Audio, task)
Core
Web Audio
Tracking
()
NEW
People
(Reporter: padenot, Assigned: padenot)
References
Details
Attachments
(2 external files)
Follow-up to bug 2089739 and https://phabricator.services.mozilla.com/D340082.
We can replace the remaining fdlibm_powf calls in DynamicsCompressorKernel::process with fdlibm_expf and fdlibm_logf for makeup gain and attack smoothing.
An ARM64 microbenchmark (m4 max) using the in-tree fdlibm sources measured roughly 3x faster calls over typical compressor input ranges. It's not much, but can add up and it's a simple fix.
| Assignee | ||
Comment 1•23 hours ago
|
||
About 3x faster in an ARM64 microbenchmark, with sampled relative gain
error below 3.5e-7.
| Assignee | ||
Comment 2•23 hours ago
|
||
About 3x faster in an ARM64 microbenchmark. Sampled attack coefficients
differ by at most 6e-8; rendered relative RMS error stays below 1.2e-6
with both substitutions.
You need to log in
before you can comment on or make changes to this bug.
Description
•