|
Re: Thought on future of XMLC: msg#00118java.enhydra.xmlc
Arno, The problem with the approach you are proposing here is that it's impossible to predict which part of the HTML pages will be modified and which part won't. It may be possible for a small projects that only uses simple get/set methods. A lot of XMLC programming is done with DOM API which can potentially traverse the entire page. An alternative is possible with LazyDOM. DOM is a tree structure. At each node, we can keep a serialized string of the node as how it and its subtree would look after being serialized. As LazyDOM keep track of which node is modified, we can assume that its copy of serialized string is invalid and traverse the subtree to generated the new serialized string. However, this would cause a large increase in the memory usage approximately O(filesize * height of the DOM tree * 2). For a 50 K page with 10 level depth, it comes out to be 2M of memory (ascii goes unicode in Java). Some smart pruning of tree is necessary to reduce the memory foot print to make it become feasible solution. David Li --- "It spells Mac OS X but pronounces NeXTSTEP" On Friday, Nov 29, 2002, at 05:10 Asia/Shanghai, Arno Schatz wrote: Hi Jake,
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Thought on future of XMLC, David Li |
|---|---|
| Next by Date: | Re: Thought on future of XMLC, Mark Diekhans |
| Previous by Thread: | Re: Thought on future of XMLC, Arno Schatz |
| Next by Thread: | Re: Thought on future of XMLC, Arno Schatz |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |