madiganz
madiganz
Okay, can you think of another way to reduce the number of garbage collections?
Makes sense. I will see if modifying the player/decoder code to see if I can achieve what I want.
I am looking at the `transferMemory` option, specifically these lines of code: ```javascript if (this._config.transferMemory){ this.decode = function(parData, parInfo){ // no copy // instead we are transfering the ownership of...
Was this code not optimized then? I am slightly lost on where to re-use the ArrayBuffers. `getMem()` in Decoder.js will actually create a new ArrayBuffer if it is not there,...
Let me see if I understand this correctly. In my case, I am using a WebSocket to receive a frame, so an ArrayBuffer is created when I receive the frame....
That is what I meant about the WebSocket part. It will always create an ArrayBuffer. In my scenario, I am running it through the decoder and then drawing it on...
> where you can reuse memory is in the output buffers. they allways have the same size and are constantly created by the decoding thread, unless you send them back...
One thing that may help is Uint8Array pooling.
Yes that answers my question and makes sense for local file systems. I am not sure if there is a standard that most web servers follow, so I think sounds...
So based on that example, there is no way to do what I am trying to do, correct?