W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2012

[Bug 19761] Dictionary type for MIDIMessage is likely a performance issue

From: <bugzilla@jessica.w3.org>
Date: Wed, 31 Oct 2012 18:19:41 +0000
To: public-audio@w3.org
Message-ID: <bug-19761-5429-cW6gsj2eJx@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=19761

--- Comment #2 from Chris Wilson <cwilso@gmail.com> ---
(In reply to comment #1)
> I'm not sure what you mean by a type that can be explicitly typecast, could
> you clarify? Do you mean using a constructed type instead, like `new
> MIDIMessage(data, timestamp)`?

In essence, except the other way around.  A Dictionary type just means an
Object with those members; unfortunately, they can be organized in any way, and
the members need to be "searched" for; these types cannot be optimized down to
essentially a struct behind the scenes.  I received feedback that it is best to
avoid Dictionary types for basic structures unless absolutely necessary.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 31 October 2012 18:19:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:14 UTC