Re: New proposal for fixing race conditions

On Mon, Jul 22, 2013 at 6:44 PM, Robert O'Callahan <robert@ocallahan.org>wrote:

> On Tue, Jul 23, 2013 at 5:44 AM, Marcus Geelnard <mage@opera.com> wrote:
>
>> My guess is that this is very similar to the current solution in gecko
>> (Ehsan?).
>>
>
> It's close to what we do. We neuter and recycle the output buffers, but
> currently we don't neuter and recycle the input buffers. I think that's a
> good idea though.
>

We also lazily create the input buffers when JS first accesses the
inputBuffer property, to optimize the case where the ScriptProcessorNode is
only used for synthesis, not as a filter.

Cheers,
Ehsan

Received on Tuesday, 23 July 2013 15:08:20 UTC