I am looking to create an ArrayBuffer with a size of (65536 * 2). When an ArrayBuffer is created, it initially contains all zeros which is quite convenient.
Should I opt for creating a new local instance whenever I need a clean (filled with zero) ArrayBuffer, or should I create a global instance that can be cleared (using an Uint32 view) whenever needed?
I will be using this buffer once every 10 seconds and I require consistent performance across all major browsers. Any insights or experiences on this matter would be greatly appreciated.
Thank you in advance...