Bug 40800 - Find a way to share whitespace in the DOM
Summary: Find a way to share whitespace in the DOM
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-17 14:51 PDT by Dave Hyatt
Modified: 2023-12-30 02:11 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hyatt 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.
Comment 1 Anne van Kesteren 2023-12-30 02:11:10 PST
At this point we need some fresh profiling to indicate this is what we need to do.