Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Issue 9732019: dart:html perf optimization based on runing Dromaeo benchmarks (Closed)

Created:
8 years, 9 months ago by Jacob
Modified:
8 years, 9 months ago
CC:
reviews_dartlang.org, arv1, slightlyoff1
Visibility:
Public.

Description

dart:html perf optimization based on runing Dromaeo benchmarks BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=5955

Patch Set 1 : Ready for review #

Total comments: 16

Patch Set 2 : Respond to code review comments #

Total comments: 4

Patch Set 3 : Fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+13902 lines, -1774 lines) Patch
M .gitignore View 2 chunks +6 lines, -6 lines 0 comments Download
M lib/dom/scripts/systemhtml.py View 1 2 22 chunks +106 lines, -161 lines 0 comments Download
M lib/dom/templates/html/dartium/html_dartium.darttemplate View 2 chunks +3 lines, -5 lines 0 comments Download
D lib/dom/templates/html/dartium/impl_Document.darttemplate View 1 chunk +0 lines, -47 lines 0 comments Download
M lib/dom/templates/html/dartium/impl_EventTarget.darttemplate View 2 chunks +3 lines, -3 lines 0 comments Download
M lib/dom/templates/html/frog/html_frog.darttemplate View 1 chunk +3 lines, -35 lines 0 comments Download
D lib/dom/templates/html/frog/impl_Document.darttemplate View 1 chunk +0 lines, -34 lines 0 comments Download
M lib/dom/templates/html/frog/impl_EventTarget.darttemplate View 1 chunk +3 lines, -3 lines 0 comments Download
D lib/dom/templates/html/frog/impl_HtmlElement.darttemplate View 1 chunk +0 lines, -8 lines 0 comments Download
M lib/dom/templates/html/frog/impl_Window.darttemplate View 1 chunk +1 line, -1 line 0 comments Download
A lib/dom/templates/html/impl/impl_Document.darttemplate View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
M lib/dom/templates/html/impl/impl_DocumentFragment.darttemplate View 2 chunks +3 lines, -3 lines 0 comments Download
M lib/dom/templates/html/impl/impl_Element.darttemplate View 16 chunks +96 lines, -34 lines 0 comments Download
M lib/dom/templates/html/impl/impl_Node.darttemplate View 1 4 chunks +111 lines, -7 lines 1 comment Download
M lib/dom/templates/html/impl/impl_NodeList.darttemplate View 2 chunks +5 lines, -5 lines 0 comments Download
M lib/dom/templates/html/impl/impl_SVGElement.darttemplate View 1 chunk +1 line, -1 line 0 comments Download
M lib/dom/templates/html/interface/interface_Element.darttemplate View 7 chunks +12 lines, -12 lines 0 comments Download
M lib/html/dartium/html_dartium.dart View 167 chunks +1172 lines, -867 lines 0 comments Download
M lib/html/frog/html_frog.dart View 1 2 154 chunks +628 lines, -401 lines 0 comments Download
M lib/html/src/_Testing.dart View 1 chunk +4 lines, -2 lines 0 comments Download
M lib/html/src/dartium_FactoryProviders.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M lib/html/src/frog_FactoryProviders.dart View 1 chunk +4 lines, -0 lines 0 comments Download
M lib/html/src/shared_FactoryProviders.dart View 4 chunks +5 lines, -66 lines 0 comments Download
M samples/third_party/dromaeo/Suites.dart View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M samples/third_party/dromaeo/tests/dom-attr-html.dart View 1 2 3 chunks +5 lines, -7 lines 0 comments Download
A + samples/third_party/dromaeo/tests/dom-attr-htmlidiomatic.dart View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A samples/third_party/dromaeo/tests/dom-attr-htmlidiomatic.html View 1 2 1 chunk +2900 lines, -0 lines 0 comments Download
M samples/third_party/dromaeo/tests/dom-modify-html.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A + samples/third_party/dromaeo/tests/dom-modify-htmlidiomatic.dart View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A samples/third_party/dromaeo/tests/dom-modify-htmlidiomatic.html View 1 2 1 chunk +2900 lines, -0 lines 0 comments Download
M samples/third_party/dromaeo/tests/dom-query-html.dart View 1 2 2 chunks +38 lines, -39 lines 0 comments Download
A + samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.dart View 1 2 2 chunks +20 lines, -20 lines 0 comments Download
A samples/third_party/dromaeo/tests/dom-query-htmlidiomatic.html View 1 2 1 chunk +2900 lines, -0 lines 0 comments Download
M samples/third_party/dromaeo/tests/dom-traverse-html.dart View 1 2 6 chunks +8 lines, -8 lines 0 comments Download
A + samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.dart View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A samples/third_party/dromaeo/tests/dom-traverse-htmlidiomatic.html View 1 2 1 chunk +2900 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Jacob
vsm, please review the Dromaeo changes. I've tweaked the query benchmark to better simulate real ...
8 years, 9 months ago (2012-03-28 00:52:02 UTC) #1
nweiz
It would have been nice to split this change up into several more isolated changes. ...
8 years, 9 months ago (2012-03-28 01:16:17 UTC) #2
Jacob
I agree this change is a bit on the large side but I don't think ...
8 years, 9 months ago (2012-03-28 17:52:03 UTC) #3
Jacob
Not sure why the code review tool still thought I had unpublished drafts. https://chromiumcodereview.appspot.com/9732019/diff/12001/lib/dom/scripts/systemhtml.py File ...
8 years, 9 months ago (2012-03-28 17:52:54 UTC) #4
vsm
I'm not sure it's worth having html and htmlfast. I'd suggest replacing html with htmlfast ...
8 years, 9 months ago (2012-03-28 18:00:14 UTC) #5
nweiz
lgtm https://chromiumcodereview.appspot.com/9732019/diff/12001/lib/dom/scripts/systemhtml.py File lib/dom/scripts/systemhtml.py (right): https://chromiumcodereview.appspot.com/9732019/diff/12001/lib/dom/scripts/systemhtml.py#newcode890 lib/dom/scripts/systemhtml.py:890: if ((getter and html_getter_name != getter.id) or On ...
8 years, 9 months ago (2012-03-28 20:29:33 UTC) #6
Jacob
https://chromiumcodereview.appspot.com/9732019/diff/12001/lib/dom/scripts/systemhtml.py File lib/dom/scripts/systemhtml.py (right): https://chromiumcodereview.appspot.com/9732019/diff/12001/lib/dom/scripts/systemhtml.py#newcode890 lib/dom/scripts/systemhtml.py:890: if ((getter and html_getter_name != getter.id) or I wish ...
8 years, 9 months ago (2012-03-28 21:01:28 UTC) #7
vsm
LGTM!
8 years, 9 months ago (2012-03-28 21:47:48 UTC) #8
arv (Not doing code reviews)
8 years, 9 months ago (2012-03-28 22:37:48 UTC) #9
FYI

https://chromiumcodereview.appspot.com/9732019/diff/9014/lib/dom/templates/ht...
File lib/dom/templates/html/impl/impl_Node.darttemplate (right):

https://chromiumcodereview.appspot.com/9732019/diff/9014/lib/dom/templates/ht...
lib/dom/templates/html/impl/impl_Node.darttemplate:70: bool isEmpty() =>
this.length == 0;
This should be this.$dom_firstChild != null

length is O(n)

Powered by Google App Engine
This is Rietveld 408576698