A does not follow from B in that sentence, that current memory fragmentation means we need to strip whitespace nodes.
It would also be possible to create a special shared "\n" text node, and have some sort of Copy On Write behavior. Again, more complexity. Not sure if the complexity would be worth the perf win. -eric On Thu, Jun 17, 2010 at 12:45 PM, Gustavo Sverzut Barbieri <[email protected]> wrote: > David, it's bit more than annoying, it's fragmenting memory for no > good. In the long run on systems will small memory it does make a > difference :-/ > > I'd like to see some option, maybe compile-time, to strip these > useless whitespaces. > > BR, > > On Thu, Jun 17, 2010 at 3:51 PM, David Hyatt <[email protected]> wrote: >> Although it's annoying that these extra whitespace nodes are in the DOM, we >> do at least make sure not to create renderers for them most of the time. >> >> dave >> >> On Jun 17, 2010, at 1:37 PM, Alexey Proskuryakov wrote: >> >>> >>> 17.06.2010, в 9:53, Andreas Delmelle написал(а): >>> >>>> If WebKit chooses, for example, to ignore character events from the parser >>>> in nodes where logically it doesn't make sense to have stray characters >>> >>> >>> That would break e.g. Web sites where JS accesses DOM in ways such as >>> node.firstChild.nextSibling, or node.childNodes[3]. We've previously seen >>> similar breakage happen after changing WebCore parsing code. >>> >>> - WBR, Alexey Proskuryakov >>> >>> _______________________________________________ >>> webkit-dev mailing list >>> [email protected] >>> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev >> >> _______________________________________________ >> webkit-dev mailing list >> [email protected] >> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev >> > > > > -- > Gustavo Sverzut Barbieri > http://profusion.mobi embedded systems > -------------------------------------- > MSN: [email protected] > Skype: gsbarbieri > Mobile: +55 (19) 9225-2202 > _______________________________________________ > webkit-dev mailing list > [email protected] > http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev > _______________________________________________ webkit-dev mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

