Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add perf optimizations for path comparisons #28645

Merged
merged 1 commit into from
Nov 26, 2018
Merged

Add perf optimizations for path comparisons #28645

merged 1 commit into from
Nov 26, 2018

Conversation

rbuckton
Copy link
Member

This adds a few minor changes to improve the performance of path comparisons.

Prior to #28629, this change shaved about 60 seconds off of the owa controls build time, though following #28629 this only saves about 2 seconds.

Before:
Total time:  142.71s

After:
Total time:  140.65s

@rbuckton
Copy link
Member Author

@weswigham: Can you take a look at this change today? Without the caching in #28629, this was a major performance bottleneck, so I can definitely see it coming back as an issue at some point in the future.

@@ -6925,7 +6925,7 @@ namespace ts {

export interface ObjectAllocator {
getNodeConstructor(): new (kind: SyntaxKind, pos?: number, end?: number) => Node;
getTokenConstructor(): new <TKind extends SyntaxKind>(kind: TKind, pos?: number, end?: number) => Token<TKind>;
getTokenConstructor(): { new <TKind extends SyntaxKind>(kind: TKind, pos?: number, end?: number): Token<TKind> };
Copy link
Member Author

Choose a reason for hiding this comment

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

NOTE: this just fixes coloration in the file. There seems to be a bug in the TypeScript syntax highlighting here.

Copy link
Member Author

Choose a reason for hiding this comment

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

@rbuckton rbuckton merged commit aa3734c into master Nov 26, 2018
@rbuckton rbuckton deleted the pathPerf branch November 26, 2018 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants