GoogleChromeLabs / web-audio-samples

Web Audio API samples by Chrome Web Audio Team
https://bit.ly/web-audio-samples
Apache License 2.0
672 stars 192 forks source link

optimize buffer access in the RingBuffer class #355

Open Shivam7-1 opened 3 months ago

Shivam7-1 commented 3 months ago

Optimize Buffer Access in RingBuffer Class Issue: https://github.com/GoogleChromeLabs/web-audio-samples/issues/347 Description:

This PR aims to optimize buffer access in the RingBuffer class by utilizing typed array views for more efficient data access. The changes improve performance by avoiding nested array accesses and directly accessing the underlying Float32Array.

Changes:

Shivam7-1 commented 3 months ago

Hi @mjwilson-google

I've made some significant changes in PR #355 , where I optimized buffer access in the RingBuffer class. I believe these changes could improve the performance of our project.

Could you please take a moment to review my PR? Your feedback would be greatly appreciated.

Additionally, I'm planning to apply for GSOC'24 and I'm particularly interested in this project. I believe that your insights would not only help improve my PR but also my application for GSOC'24.

Thank you for your time and consideration.

Best, Shivam