-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Save jsdoc comments in string, not array #53048
Save jsdoc comments in string, not array #53048
Conversation
string `+=` is faster than string[] `.push` in this case.
@typescript-bot perf test this |
Heya @sandersn, I've started to run the perf test suite on this PR at 4c21bf5. You can monitor the build here. Update: The results are in! |
Since the perf runner is overloaded with code from main, here's the result from my perf runner with DetailsLoading benchmark and comparing to baseline.
System
Hosts
Scenarios
|
So, seems to be a little better, but worse in memory usage? I guess I'll be curious what the real runner says, for comparison. |
@sandersn Here they are:
CompilerComparison Report - main..53048
System
Hosts
Scenarios
TSServerComparison Report - main..53048
System
Hosts
Scenarios
StartupComparison Report - main..53048
System
Hosts
Scenarios
Developer Information: |
wellll, it mostly looks like it's shuffling the GC around, because total time hardly changes. Since memory also increases a little, I guess this one is a dead end, and I should definitely start profiling with |
A cleanup of the first commit in #53007, after I realised that the next good target for improvement is the scanner, and changes there might obviate the ones in #53007
First step toward addressing #52959