-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Avoid using temporary array for getExpandedParameters #52834
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
Avoid using temporary array for getExpandedParameters #52834
Conversation
@typescript-bot perf test this |
Heya @jakebailey, I've started to run the perf test suite on this PR at 204d9b2. You can monitor the build here. |
The big let/const PR went in, so I cancelled the above and will restart it again later once that has settled, just in case the bot compares the wrong things. |
@typescript-bot perf test this |
Heya @jakebailey, I've started to run the perf test suite on this PR at 17e2471. You can monitor the build here. Update: The results are in! |
@jakebailey Here they are:
CompilerComparison Report - main..52834
System
Hosts
Scenarios
TSServerComparison Report - main..52834
System
Hosts
Scenarios
StartupComparison Report - main..52834
System
Hosts
Scenarios
Developer Information: |
Guess that's a no. |
It was noted during review of #49627 that this function seemingly always returns an array with one item.
It looks like that in the checker, we always pass
skipUnionExpanding=true
. Only in services for signature help do we want expanding (for just a couple tests).It seems wasteful to allocate an array and then throw it away to serializing any signature. Let's see if it helps to avoid it.