Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(147)

Issue 7663044: Checking undefined properties is slow, so cache in a boolean. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by usrbincc
Modified:
12 years, 3 months ago
Reviewers:
arv
CC:
traceur-compiler-reviews_googlegroups.com
Base URL:
https://code.google.com/p/traceur-compiler/@master
Visibility:
Public.

Description

Checking undefined properties is slow, so cache in a boolean. BUG=None TEST=None

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unnecessary conversion to boolean. #

Total comments: 1

Patch Set 3 : Less fancy var declaration. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -8 lines) Patch
M src/codegeneration/GeneratorTransformPass.js View 1 2 3 chunks +13 lines, -8 lines 0 comments Download

Messages

Total messages: 4
arv
https://codereview.appspot.com/7663044/diff/1/src/codegeneration/GeneratorTransformPass.js File src/codegeneration/GeneratorTransformPass.js (right): https://codereview.appspot.com/7663044/diff/1/src/codegeneration/GeneratorTransformPass.js#newcode268 src/codegeneration/GeneratorTransformPass.js:268: var ${isGeneratorObject} = !!${g}.send; no need for the !! ...
12 years, 3 months ago (2013-03-13 22:19:56 UTC) #1
usrbincc
Removed '!!'. ---- Patch order at a glance: Make generator common code depend only upon ...
12 years, 3 months ago (2013-03-14 19:31:14 UTC) #2
arv
LGTM with nit. Do you want me to start submitting these in the order you ...
12 years, 3 months ago (2013-03-14 19:51:19 UTC) #3
usrbincc
12 years, 3 months ago (2013-03-14 20:30:40 UTC) #4
Removed overly-fancy var declaration. Kept the 'id' because it's
shorter. The procedural api is scary.

On 2013/03/14 19:51:19, arv-chromium wrote:
> LGTM with nit.
>
> Do you want me to start submitting these in the order you specified? I was
> planning on waiting until all of them we LGTM'ed.

It's probably easier to keep track of, applying them all in a row, so
waiting works for me. It doesn't really block any future work, since git
merge is usually pretty good.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b