Open Bug 1501608 Opened Last year Updated 3 months ago
Investigate reducing size of Script
Source Object by moving DOM related fields outside the engine
47 bytes, text/x-phabricator-request
|Details | Review|
Bug 1482153 increased memory usage slightly (see bug 1482153 comment 18) by adding an extra slot to ScriptSourceObject which now requires an 8 slot object rather than a 4 slot object as before. It's possible that we could move the slots containing the DOM element proxy and DOM attribute name out of the engine and into a script loader data structure. This would make these objects smaller but also mean that we don't have to create DOM proxy objects for elements unless they are required (usually for the debugger). This does require a DOM data structure to hold these, but following bug 1342012 I think this will always be the case. This is also nicer conceptually to not have the JS engine know about these things (although the debugger will still have to).
Assignee: nobody → dpalmeiro
You need to log in before you can comment on or make changes to this bug.