[Webkit-unassigned] [Bug 17145] New: Add some #ifdef'd AtomicString counters for judging String efficiency

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 1 16:37:32 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17145

           Summary: Add some #ifdef'd AtomicString counters for judging
                    String efficiency
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: eric at webkit.org
                CC: mjs at apple.com, darin at apple.com


Add some #ifdef'd AtomicString counters for judging String efficiency

I've been meaning to do this for some time.  We should have an #ifdef mode
where StringImpl constructors always do an AtomicString hash lookup to see if
an atomic version of that impl already exists.  We could then collect
statistics and see how many duplicates of what strings are held in memory.

Likewise, if we kept track, we could see what AtomicStrings are never (or
rarely) used and possibly not load them into the AtomicString hash on startup.

Finding unused atomic strings is likely not very interesting, since all the
ones used in code are very very small.  However, finding strings which really
should be Atomic *is* very interesting.


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



More information about the webkit-unassigned mailing list