Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Do TseTse checks with typechecker later #359

Closed
wants to merge 1 commit into from
Closed

Do TseTse checks with typechecker later #359

wants to merge 1 commit into from

Conversation

filipesilva
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature (please, look at the "Scope of the project" section in the README.md file)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

The typechecker is known to be slow.

By moving the non-typechecker checks earlier in the process, I was able to observe significant savings in the perfTrace.wrap total times:

  • CheckReturnValueRule: 1,036ms, down from 2,102ms
  • MustUsePromisesRule: 119ms, down from 1,174ms

Issue Number: angular/angular#27426

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

The typechecker is known to be slow.

By moving the non-typechecker checks earlier in the process, I was able to observe significant savings in the `perfTrace.wrap` total times:
- `CheckReturnValueRule`: 1,036ms, down from 2,102ms
- `MustUsePromisesRule`: 119ms, down from 1,174ms
Copy link
Contributor

@mgechev mgechev left a comment

Choose a reason for hiding this comment

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

🎉

@alexeagle alexeagle closed this in f5a8519 Dec 17, 2018
alexeagle pushed a commit to alexeagle/rules_typescript that referenced this pull request Dec 17, 2018
The typechecker is known to be slow to create due to microsoft/TypeScript#27997

By moving the non-typechecker checks earlier in the process, I was able to observe significant savings in the `perfTrace.wrap` total times:
- `CheckReturnValueRule`: 1,036ms, down from 2,102ms
- `MustUsePromisesRule`: 119ms, down from 1,174ms

Closes bazelbuild#359

PiperOrigin-RevId: 225844645
@filipesilva filipesilva deleted the tsetse-avoid-typechecker branch December 17, 2018 19:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants