r/Windows11 • u/VeganChicken18 • 16d ago
Feature Dev Drive - Now what?
https://learn.microsoft.com/en-us/windows/dev-drive/#what-should-i-put-on-my-dev-driveHi 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!
12
u/LitheBeep 16d 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?
4
u/ReallySuperName 14d ago
Never ask a Python dev to do anything correctly, don't be surprised if they cling to their hard coded
C:\Something\Somethingstrings deeply nested in their code.
13
u/daltorak 16d 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.
0
16d ago
[deleted]
10
u/Oxytokin 15d ago edited 15d 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...
2
u/DragonfruitGrand5683 16d ago edited 16d 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 15d 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 15d 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 15d 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 15d 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.
1
u/Relc_Punch84 4d ago
To clarify, it does scan but it is asynchronous and does not block your file access until the scan has been completed.
The balance between threat protection and performance is achieved by deferring security scans until after the open file operation has completed, instead of performing the security scan synchronously while the file operation is being processed. Deferring scans until after file open completes inherently provides faster performance, but with less protection. However, enabling performance mode provides significantly better protection than other performance tuning methods, such as using folder exclusions, which block security scans altogether.
2
u/Particular-Winner136 14d 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 15d 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 15d ago
Yes, unlike NTFS it's a Copy on Write filesystem, thus substantially faster for development, especially large projects
13
u/Micromize 16d 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.