web-audio-api-rs
web-audio-api-rs copied to clipboard
Improved perf on `StereoPannerNode`
trafficstars
Hey,
Reviewed the algorithm to access memory in a more aligned way (same idea as for delay node and audio buffer source node)
before
- 18 | Stereo panning | 110 | 1090.9x | 120
- 19 | Stereo panning with automation | 117 | 1025.6x | 120
after
- 18 | Stereo panning | 83 | 1445.8x | 120
- 19 | Stereo panning with automation | 81 | 1481.5x | 120
Also:
- simplified a bit the code
- improved the tests
- improved example