| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
TypeScript Bot (@typescript-bot) perf test this faster |
Sorry, something went wrong.
|
Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the abridged perf test suite on this PR at 99368d9. You can monitor the build here. Update: The results are in! |
Sorry, something went wrong.
|
Daniel Rosenwasser (@DanielRosenwasser) Comparison Report - main..52835
System
Hosts
Scenarios
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sorry, something went wrong.
|
It's sort of interesting that it's always 0.10ish seconds saved; is there a fixed window where this is problematic? |
Sorry, something went wrong.
|
Ugh, probably conflating changes. TypeScript Bot (@typescript-bot) perf test this |
Sorry, something went wrong.
|
Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the perf test suite on this PR at 99368d9. You can monitor the build here. |
Sorry, something went wrong.
|
GitHub has been 500'ing, so the perf run succeeded, but posting a comment didn't succeed. Here are the results:CompilerComparison Report - main..52835
System
Hosts
Scenarios
TSServerComparison Report - main..52835
System
Hosts
Scenarios
StartupComparison Report - main..52835
System
Hosts
Scenarios
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sorry, something went wrong.
|
The parser scanner change was a huge win for the few variables it modified, but this one is 10x less of a win for like 4x the variables changed (a few hundred); do we think it's worth it? |
Sorry, something went wrong.
|
Well, I guess xstate is consistently like 3%, and the server tests have good geterr. |
Sorry, something went wrong.
Definitely! I think it's very scoped, and the conceptual cleanliness buys us relatively little - so it's a free win to me. I could never argue with a developer using TypeScript that a 1-3% reduction in type-checking time wasn't worth it because we didn't want to disable our linter. So I think we should even do this across the compiler. The only thing that might be lacking is some documentation on why it is that we're doing this. |
Sorry, something went wrong.
There was a problem hiding this comment.
I still don't like it given how it's like 300 variables, but I guess LGTM given they're at the top and rarely touched.
Sorry, something went wrong.
| // Note: we only look at files already found by module resolution, | ||
| // so there may be files we did not consider. | ||
| const map = new Map<string, boolean>(); | ||
| var map = new Map<string, boolean>(); |
There was a problem hiding this comment.
| var map = new Map<string, boolean>(); | |
| const map = new Map<string, boolean>(); |
Sorry, something went wrong.
There was a problem hiding this comment.
Wait, why did you suggest reverting just this one back to const?
Sorry, something went wrong.
There was a problem hiding this comment.
It's not a top level variable and is only referenced once for this memoized call. There's no way it has any meaningful performance impact.
But, my suggestion wasn't merged anyway and it's not hurting anything either.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Follow-up from #52832.