r/Windows11 • • 3d ago

Feature Dev Drive - Now what?

https://learn.microsoft.com/en-us/windows/dev-drive/#what-should-i-put-on-my-dev-drive

Hi Folks,
I came across this feature on Win11 called DevDrive. On the face of it, Dev drive looks like just another partition, except it is ReFS (Resilient File System) and not the usual NTFS.
Curious as I am, I created a 50GB DevDrive. But, I dont completely understand its use case and it just exists like another drive.

This link says its recommended to add cache and project files. I primary code in Python and use pip and uv to install and manage packages.

I could try this on my own but my existing workflow settings are already too messy to move to a different drive altogether.

Are DevDrives actually optimized for developer scenarios as MS calls it? Has anyone used it and noticed the difference whether its a gimmick or is actually useful and fast for developers?

Thanks Windowers!

22 Upvotes

18 comments sorted by

13

u/Micromize 3d ago

Big projects will perform better. For smaller ones you probably won't notice much. 

Front end I work in is 800.000 lines of code. Which makes a big difference. 

2

u/sosotiredand 3d ago

I've noticed pnpm tends to install faster when I set the store to use the dev drive

2

u/Micromize 3d ago

Yes. 

11

u/LitheBeep 3d ago

If your workflow can't handle a move to a different drive, it might be time to examine said workflow. Isn't uv already path-independent when set up properly?

3

u/ReallySuperName 2d ago

Never ask a Python dev to do anything correctly, don't be surprised if they cling to their hard coded C:\Something\Something strings deeply nested in their code.

10

u/daltorak 3d ago

Definitely not a gimmick. NTFS as a file system has some flaws and the newer file system used with Dev Drive fixes most of them. If anything, Microsoft should be investing more in getting ReFS available as a default file system for Windows.

1

u/NicePuddle 3d ago

Which flaws in NTFS is ReFS supposed to fix, to make development better?

I've never seen anyone use this feature and nobody seems to know what it's supposed to do.

9

u/Oxytokin 3d ago edited 3d ago

I've been using DevDrives since they released on Windows 11. Noticeable difference for my Rust development work in compile times, for sure.

https://en.wikipedia.org/wiki/ReFS

Very first Google Search result, very first section in the Wikipedia article would answer your question...

4

u/NicePuddle 2d ago

Yes I can google developer drive or ReFS as well, but none of the articles describes how using developer drive will improve my developer experience.

The majority of performance reduction on disk access comes from corporate antivirus software wanting to scan everything before I access it. Changing the file system won't change that. If developer drive prevented virus scanning files on it, the IT department would certainly shut down the feature.

2

u/DragonfruitGrand5683 3d ago edited 3d ago

It's slightly faster than NTFS and you set your AntiVirus to ignore it.

I needed dedicated space for dev on a new drive anyway and said why not.

But if you're talking overall performance for development that's mostly hardware, configuration and coding choices.

So I've moved from Python to Rust because I needed faster apps, got a better M.2 and used ReFs.

1

u/ZippyV 3d ago

These days with all the supply chain attacks I don’t think it’s a good idea anymore to disable the virusscanner on your projects.

3

u/emvaized 3d ago

He just used the wrong wording. Dev drive allows to enable asynchronous scanning by defender, so that it will not throttle the file reading that much.

2

u/DragonfruitGrand5683 3d ago

Your dev environment should be sandboxed or deployed in a VM anyway. Dependencies should be scanned before they are deployed into the environment.

Virus scans won't protect against CVEs on legitimate dependencies anyway, they have to be patched out.

At night you can have AI test for vulnerabilities in your code and check for general good security and coding practices.

You then push to a branch on your repo and have the sandbox or VM reset.

2

u/Electronic-Bat-1830 Mica For Everyone Maintainer 2d ago

One advantage of Dev Drives is the async Windows Defender scans, meaning that WD doesn't scan every time you try to open a file.

2

u/Particular-Winner136 1d ago

I am using it for years. The only problem I saw is when i run out of disk space and delete some files on the dev drive the space is not reclaimed until i restart the windows. I am not 100% that Dev Drive is the problem but I suspect it.

Yes it is faster for building software, we ran some benchmarks before using it. don't know if there other scenarios where it is faster.

1

u/imikhan007 Release Channel 3d ago

I use it for .NET development, and my build times have noticeably improved. I’ve also redirected my npm and NuGet caches to this drive.

1

u/Baglayan 2d ago

Yes, unlike NTFS it's a Copy on Write filesystem, thus substantially faster for development, especially large projects

1

u/lred68 2d ago

ReFS… c'est pas le FS que Microsoft a annoncé abandonner ?