Re: [dev-servo] HTML parser-related datatypes

2012-10-16 Thread Robert O'Callahan
On Thu, Oct 11, 2012 at 2:03 PM, Johnny Stenback wrote: > Excellent question. This is something that has been discussed before > (there was a discussion at the previous DOM/WebAPI work week about > this), and it's my personal belief that having the DOM use anything > other than what JS requires,

Re: [dev-servo] HTML parser-related datatypes

2012-10-16 Thread David Bruant
2012/10/16 Boris Zbarsky > On 10/16/12 10:13 AM, Henri Sivonen wrote: > >> Does random charAt() need to be O(1) or is it enough for each charAt >> in sequence over the string to be O(1)? >> > > For actual uses, or benchmarks? :( If both are different, Mozilla should release a new benchmark base

Re: [dev-servo] HTML parser-related datatypes

2012-10-16 Thread Boris Zbarsky
On 10/16/12 10:13 AM, Henri Sivonen wrote: Does random charAt() need to be O(1) or is it enough for each charAt in sequence over the string to be O(1)? For actual uses, or benchmarks? :( -Boris ___ dev-servo mailing list dev-servo@lists.mozilla.org

Re: [dev-servo] HTML parser-related datatypes

2012-10-16 Thread Henri Sivonen
On Thu, Oct 11, 2012 at 4:03 AM, Johnny Stenback wrote: >> Is there a plan to use a special interned string type for identifiers >> the way we use nsIAtom* in Gecko? > > I would imagine that we will use something like nsINodeInfo, and > something like nsIAtom, as they not only help with memory use