User forwarded port has the first request TTFB too high
See original GitHub issue- VS Code Version:
Version: 1.56.2 (user setup) Commit: 054a9295330880ed74ceaedda236253b4f39a335 Date: 2021-05-12T17:13:13.157Z Electron: 12.0.4 Chrome: 89.0.4389.114 Node.js: 14.16.0 V8: 8.9.255.24-electron.0 OS: Windows_NT x64 10.0.19042
- OS Version:
Windows_NT x64 10.0.19042
Steps to Reproduce:
-
Forward the port of a container inside VSCode
-
Access it through browser
-
See that the first request has almost
400ms
of TTFB and the second one is less than10ms
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
High Time to first byte (TTFB) in Windows Server 2012 R2
My Windows Server 2012 R2 has a long wait time on first access. It doesn't matter which service it is: RDP server, SMB...
Read more >Long time-to-first-byte problem · Issue #245 - GitHub
Via the ingress I have noticed: TTFB times between 1 - 5s; Happens a lot on GET OPTION calls but not always; Randomly...
Read more >How to optimize Time To First Byte (TTFB)? - Server Fault
This will help to breakdown the TTFB number into its component values, so that you can focus on fixing them one at a...
Read more >NodeJs website TTFB is very high and site is running very slow
log('Express server listening on port ' + 1234); });. I have also removed all database related work from app.js but still facing same...
Read more >What is Time to First Byte, and Why is it Important? - Resources
This metric is critical in the world of web acceleration and content delivery because a high TTFB often implies latency because of high...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like almost all of the time is spent here
https://github.com/microsoft/vscode/blob/ee1655a82ebdfd38bf8792088a6602c69f7bbd94/src/vs/platform/remote/common/remoteAgentConnection.ts#L363-L363
@alexdima I am not familiar with this function, but I suspect that there’s nothing that can be done to speed it up since it all looks essential.
Assigning to June to investigate further.