Skip to content

Scan less during classification.#3530

Merged
CyrusNajmabadi merged 3 commits into
masterfrom
lessScanningDuringClassification
Jun 18, 2015
Merged

Scan less during classification.#3530
CyrusNajmabadi merged 3 commits into
masterfrom
lessScanningDuringClassification

Conversation

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/compiler/utilities.ts Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Misleading name; there are no TextSpans given here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"numbers do not belong in API names", I will make sure i put that on my tombstone :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I'm open to other names.

@mhegazy

mhegazy commented Jun 17, 2015

Copy link
Copy Markdown
Contributor

do you have some classification perf numbers on before and after the change?

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor Author

Yes. This drops syntactic classification to about a 3rd of the original cost. For something like Checker.ts we go from ~300 ms in classification to around ~100ms. Note: this is only the cost of hte classification itself. This does not cover the cost to getChildren on all the nodes we walk.

Comment thread src/compiler/utilities.ts

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Overlaps" has very different semantics from "Intersects" from the perspective of the Editor and how they use that terminology. This is following the editor semantics for 'intersects', so i'd like to keep using that name.

@DanielRosenwasser

Copy link
Copy Markdown
Member

👍

CyrusNajmabadi added a commit that referenced this pull request Jun 18, 2015
@CyrusNajmabadi CyrusNajmabadi merged commit dd671ed into master Jun 18, 2015
@CyrusNajmabadi CyrusNajmabadi deleted the lessScanningDuringClassification branch June 18, 2015 18:19
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants