Hacker News new | ask | show | jobs
by leeoniya 506 days ago
it's usually windows defender and virus scanning that causes these massive slowdowns.
2 comments

And as a result of this, if you want to optimize your program to be fast on Windows, you will make very different optimization decisions than on other platforms.

For example, Windows runs virus scans on close(), which makes it very slow. This means that sometimes it makes sense to have one or more background threads exclusively dedicated to closing files.

There's a good talk on this at https://www.youtube.com/watch?v=qbKGw8MQ0i8

might have been a problem in Bun that was fixed by: https://github.com/oven-sh/bun/pull/16747
That’s exactly the problem “Dev Drive” is intended to solve I believe. I haven’t tried it myself.

https://learn.microsoft.com/en-us/windows/dev-drive/

It helps. Install your games on it, too.