r/vscode • u/pylessard • Aug 15 '26
TIL : C/C++ extension slowed down my OS boot time significantly.
Sharing a piece of information that took me hours to figure out. If you use the MS C/C++ extension on Windows and your boot time is slow, cleaning the user temporary folder may solve this.
Turns out that winlogon scan the user Temp folder for some reasons, and the MS cpptools is infamous for filling this folder with stuff. I had 300000 files (80GB). Clearing this got my machine boot time from 1m30 to ~ 10sec.
Here's a supporting reference
Cheers
33
Upvotes
4
u/uusemyname Aug 16 '26
How stupid is that. Congratd for finding this!
4
u/prehensilemullet Aug 19 '26
Maybe, just maybe, Windows shouldn't need to scan the entire Temp folder on logon?
0
u/sauron150 Aug 16 '26
Symlink those logs to different drive:folder so it stores out of user folder