Refactor raphael to improve compile performance#66682
Merged
Conversation
Based on microsoft/TypeScript#55638 (comment) Extracts the conditional type into a separate type alias. Cheaper to compile and arguably easier to read.
Contributor
|
@sandersn Thank you for submitting this PR! This is a live comment which I will keep updated. 1 package in this PR
Code ReviewsThis PR can be merged once it's reviewed by a DT maintainer. You can test the changes of this PR in the Playground. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 66682,
"author": "sandersn",
"headCommitOid": "1b02549349bc88684d4e5f777ecc003d37f5d985",
"mergeBaseOid": "cf80fa7c0d442fc70b6ee2c46eb5ea65174fde04",
"lastPushDate": "2023-09-12T23:31:38.000Z",
"lastActivityDate": "2023-09-12T23:43:28.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Well-liked by everyone",
"pkgInfo": [
{
"name": "raphael",
"kind": "edit",
"files": [
{
"path": "types/raphael/index.d.ts",
"kind": "definition"
}
],
"owners": [
"CheCoxshall",
"blutorange"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Well-liked by everyone"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "blutorange",
"date": "2023-09-12T23:43:28.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 1716675287,
"ciResult": "pass"
} |
Contributor
|
🔔 @CheCoxshall @blutorange — please review this PR in the next few days. Be sure to explicitly select |
blutorange
approved these changes
Sep 12, 2023
Contributor
blutorange
left a comment
There was a problem hiding this comment.
I don't know about the performance gains, but since you are working on the TS compiler, I am sure you know better than me.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on microsoft/TypeScript#55638 (comment)
Extracts the conditional type into a separate type alias. Cheaper to compile and arguably easier to read.