Bug 40800

Summary: Find a way to share whitespace in the DOM
Product: WebKit Reporter: Dave Hyatt <hyatt>
Component: DOMAssignee: Dave Hyatt <hyatt>
Status: RESOLVED WONTFIX    
Severity: Normal CC: ap, ddkilzer, eric.carlson, jchaffraix, mitz, simon.fraser, tonikitoo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Dave Hyatt
Reported 2010-06-17 14:51:41 PDT
This bug is tracking the idea of sharing common whitespace sequences in the DOM to reduce memory use. For example if "\n" occurs in 1000 unique Nodes, it's a waste of memory. We should find some way to avoid really creating Nodes until JS asks for them while still retaining all the whitespace information somewhere in a more compact format.
Attachments
Anne van Kesteren
Comment 1 2023-12-30 02:11:10 PST
At this point we need some fresh profiling to indicate this is what we need to do.
Note You need to log in before you can comment on or make changes to this bug.