Re: [webkit-dev] DOM Serialization?

2010-02-03 Thread Chris Jerdonek
On Fri, Jan 22, 2010 at 7:16 AM, Christopher White skullkn...@gmail.com wrote: Is it possible to save the DOM resulting from the parsing of HTML / CSS into a file and then read it back instead of re-parsing the HTML (similar to Java object serialization). Does it save any time or is it a wash?

Re: [webkit-dev] DOM Serialization?

2010-01-24 Thread Christopher White
Thank you for your feedback. Assuming it is not practical, any thoughts on things that can be done to speed up the parsing and loading process for content that is not dynamically generated by JavaScript (i.e. document.write())? On Sat, Jan 23, 2010 at 10:14 AM, Darin Adler da...@apple.com

Re: [webkit-dev] DOM Serialization?

2010-01-23 Thread Christopher White
What are the general thoughts whether a binary serialization is possible retaining all needed information for rendering? On Fri, Jan 22, 2010 at 9:19 AM, Darin Adler da...@apple.com wrote: On Jan 22, 2010, at 9:12 AM, Adam Treat wrote: Correct me if I'm wrong, but he said without re-parsing.

Re: [webkit-dev] DOM Serialization?

2010-01-23 Thread Darin Adler
On Jan 23, 2010, at 8:18 AM, Christopher White wrote: What are the general thoughts whether a binary serialization is possible retaining all needed information for rendering? My general thought is that it is not practical. -- Darin ___

Re: [webkit-dev] DOM Serialization?

2010-01-22 Thread Darin Adler
On Jan 22, 2010, at 7:16 AM, Christopher White wrote: Is it possible to save the DOM resulting from the parsing of HTML / CSS into a file and then read it back instead of re-parsing the HTML (similar to Java object serialization). WebKit has a feature called web archives that does something

Re: [webkit-dev] DOM Serialization?

2010-01-22 Thread Adam Treat
On Friday 22 January 2010 12:09:14 pm Darin Adler wrote: On Jan 22, 2010, at 7:16 AM, Christopher White wrote: Is it possible to save the DOM resulting from the parsing of HTML / CSS into a file and then read it back instead of re-parsing the HTML (similar to Java object serialization).

Re: [webkit-dev] DOM Serialization?

2010-01-22 Thread Darin Adler
On Jan 22, 2010, at 9:12 AM, Adam Treat wrote: Correct me if I'm wrong, but he said without re-parsing. The WebArchive definitely needs to be reparsed, right? You’re right. I was wrong. I guess the idea boils down to inventing a new serialization for HTML besides HTML and XHTML, a binary

Re: [webkit-dev] DOM Serialization?

2010-01-22 Thread Christopher White
Yes. What I am looking into is creating a binary version of the document (i.e. DOM including all rendering information). That way, when viewing the content, I can skip the parse step and just put the DOM into memory and start the layout. Time wash question? So I am trying to save time loading