Summary: | Web Inspector: NMI: replace ObjectType enum with static const char* string identifiers. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Ilya Tikhonovsky <loislo> | ||||||
Component: | Web Inspector (Deprecated) | Assignee: | Ilya Tikhonovsky <loislo> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | alph, apavlov, bweinstein, dglazkov, jamesr, joepeck, keishi, loislo, peter+ews, pfeldman, pmuellr, rik, timothy, yurys | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Ilya Tikhonovsky
2012-09-04 05:44:05 PDT
Created attachment 162024 [details]
Patch
Comment on attachment 162024 [details] Patch Attachment 162024 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/13743484 Comment on attachment 162024 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=162024&action=review > Source/WebCore/inspector/MemoryInstrumentationImpl.cpp:40 > +Vector<String> WebCoreMemoryTypesImpl::registerObjectTypes(unsigned firstFreeId) I'd rather use strings instead of numbers for identifying object type. We could switch to the scheme with the type registration later if there is a noticeable performance impact. WDYT? Comment on attachment 162024 [details] Patch Attachment 162024 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/13757216 Comment on attachment 162024 [details] Patch Attachment 162024 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/13757228 Comment on attachment 162024 [details] Patch Attachment 162024 [details] did not pass cr-android-ews (chromium-android): Output: http://queues.webkit.org/results/13745476 (In reply to comment #3) > (From update of attachment 162024 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=162024&action=review > > > Source/WebCore/inspector/MemoryInstrumentationImpl.cpp:40 > > +Vector<String> WebCoreMemoryTypesImpl::registerObjectTypes(unsigned firstFreeId) > > I'd rather use strings instead of numbers for identifying object type. We could switch to the scheme with the type registration later if there is a noticeable performance impact. WDYT? Looks like the version which uses char* as ObjectType is 30% slower than current implementation. 990ms vs 750ms on 10m insertions with disabled visited check. I think we could use this approach as the solution because we will have simpler business logic. Created attachment 162046 [details]
Patch
Comment on attachment 162046 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=162046&action=review > Source/WebCore/dom/MemoryInstrumentation.h:53 > + static const char* Other; const char* -> ObjectType Committed r127571: <http://trac.webkit.org/changeset/127571> The "speedTest" unit test takes over 20 seconds to run on my extremely fast desktop. That's waaaaaaaaaaaaaaaaay too long for a unit test. |