web-audio-api-rs icon indicating copy to clipboard operation
web-audio-api-rs copied to clipboard

Improved perf on `StereoPannerNode`

Open b-ma opened this issue 3 years ago • 0 comments
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

b-ma avatar Aug 02 '22 10:08 b-ma