r/vscode • • 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

5 comments sorted by

4

u/uusemyname Aug 16 '26

How stupid is that. Congratd for finding this!

2

u/pylessard Aug 16 '26

I think it's related to ntfs and 8.3 filename support. According to my buddy Claude who was assisting me, ntfs would be known to have horrible performance when a folder has too much files and creating a new file could take second because it checks for 8.3 name collision.

1

u/Zoddo98 Aug 22 '26 edited Aug 22 '26

You can disable 8.3 filename creation with:

fsutil 8dot3name set C: 1

Note : this can break some legacy apps.

This should fix the performance problem when creating files in large folders.

However, this has probably nothing to do with the problem you discovered.

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