Member-only story

🚀 Node Modules Now Faster On Windows With Dev Drive

Tom Smykowski
3 min readJul 10, 2024

--

No one knows about the new feature in Windows called dev drive that can boost node_modules and other monstrosities

Windows is the operating system used the most for professional and personal stuff by programmers.

But it has some drawbacks, and while these pile up lately there’s one nice new feature that was announced like a year ago, but no one noticed it.

So, the problem with Windows is that it doesn’t expect a folder to have 100k 1KB files. To be honest no one expected it. But it occurs it’s how web applications are built.

When you use npm, or other compatible package manager, it will install all dependencies of your project into node_modules folder. Dependencies of these dependencies as well and so on.

It becomes quite clear that to develop 1MB web application suddenly you need to store Library of Congress on your computer.

Windows for years is famous for being extremely slow handling a lot of small files. Whether you use FAT, NTFS, HDD or SDD there’s always time to tinkle.

Some people blame the file format, and some Windows Defender that adds time to processing all of these files.

--

--

Tom Smykowski
Tom Smykowski

Written by Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.

Responses (2)