[Webkit-unassigned] [Bug 38661] Persist V8's ScriptData to cache
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 27 15:55:47 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38661
Adam Barth <abarth at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #57269|review? |review+, commit-queue-
Flag| |
--- Comment #5 from Adam Barth <abarth at webkit.org> 2010-05-27 15:55:46 PST ---
(From update of attachment 57269)
This looks good. I'm sad about the magic number, as we've discussed before. Also, you're comments aren't they way we usually do things in WebKit-land. Maybe worth tweaking slightly before landing?
WebCore/ChangeLog:12
+ Chromium's morejs benchmark shows a 3-4% improvement on fast hardware.
Awesome.
WebCore/bindings/v8/V8Proxy.cpp:345
+ static const unsigned dataTypeID = 0xECC13BD7;
:(
WebCore/bindings/v8/V8Proxy.cpp:353
+ // If there is cached data, use it.
We usually don't comment about *what* the code is doing, but more *why* it's doing that.
WebCore/bindings/v8/V8Proxy.cpp:359
+ v8::ScriptData* scriptData = v8::ScriptData::PreCompile(sourceCode.source().utf8().data(), sourceCode.source().utf8().length());
Is the conversion to utf8 expensive? Maybe we should do that once instead of twice?
--
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