-
Notifications
You must be signed in to change notification settings - Fork 31.2k
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
TS Server performance 10-50mb files #235853
Comments
1.5 million! |
I'm investigating why we start making requests on the (Note that the stall seems to happen before this and on a different file) |
The originally file was 50.2 mb. Seems like a VS code error that caused us to start making requests for this file without opening it first. 50mb is the limit of what we synchronize with extensions. I haven't been able to trigger it again though The smaller, 10-15mb files in the repo are likely more interesting. Here's the log: It's seems faster with 3.3 and I don't see any stalls. The long running requests:
|
@mjbvz On our side the large file is classified as anything more than 4mb. https://github.com/Microsoft/TypeScript/blob/master/src/server/editorServices.ts#L4 |
Does that mean we should not sync files over that size with TS Server? |
Right. |
We can do that. On the server side, should requests against large files be treated as noops? Right now it looks like ts server still tries handling them |
@mjbvz what's left to do here? |
I'll test this again in the latest VS Code |
From #63473
TypeScript Version: 3.3.0-dev.20181128
Search Terms:
Repo
Open one of the files from the user's project. These are very large files, some with 1.5 million lines
Bug
TS Server goes unresponsive. Here's one example log file:
tsserver.log
Two observations:
The text was updated successfully, but these errors were encountered: