[Webkit-unassigned] [Bug 99383] [v8] 15+% of Dromaeo/dom-query is spent creating AtomicStrings for "div", "*" constants passed from V8

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 17 17:26:49 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=99383





--- Comment #4 from Eric Seidel <eric at webkit.org>  2012-10-17 17:27:42 PST ---
This does not appear to be the same trouble that JSC is having.  v8 already does the caching I proposed in bug 99118 for JSC.

All the AtomicString creation for V8 seems to be coming from this test:

        test( "getElementById", function(){
                for ( var i = 0; i < num * 30; i++ ) {
                        ret = document.getElementById("testA" + num).nodeType;
                        ret = document.getElementById("testB" + num).nodeType;
                        ret = document.getElementById("testC" + num).nodeType;
                        ret = document.getElementById("testD" + num).nodeType;
                        ret = document.getElementById("testE" + num).nodeType;
                        ret = document.getElementById("testF" + num).nodeType;
                }
        });

I'm not entirely clear why the test* strings are not externalized, and thus kept in WebCoreStringResource's m_atomicString members beyond each loop iteration, but they don't seem to be.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list