7 ms·
SourceTree is pretty much unusable on my laptop, because every time it does anything the antimalware service springs into life and uses up anything from 20%-80%
by to3m 9y ago
SourceTree is pretty much unusable on my laptop, because every time it does anything the antimalware service springs into life and uses up anything from 20%-80% of the CPU power available. I've had it take 30 seconds to revert 1 line. It's stupid.
I was very much prepared to blame Atlassian for this, but maybe I need to start thinking about blaming Microsoft instead, because it sounds like they've made a few bad decisions here.
(Still, if my options are this, or POSIX, I'll take this, thanks. Dear Antimalware Service Executable, please, take all of my CPUs; whatever SourceTree is doing, I can surely wait. Also, please feel free to continue to run fucking Javascript as administrator... I don't mind. It's a small price to pay if it means I don't have to think about EINTR or CLOEXEC.)
- AdamTReineke 9y agoIf real-time monitoring is running, try adding exceptions for your source and build outputs. It prevents antimalware from watching changes in those folders which can really slow down a build or sync.
- to3m 9y agoI've always been a bit wary of doing that, as I've seen infected EXEs committed to version control a number of times because of it :( What I have done - well, what I think I have done! - the UI is appalling - is added SourceTree.exe and git.exe as exclusions. My intention here is that the antimalware service won't then monitor their activity while they're doing stuff, but will still check working copies when it does a routine scan... but sadly this didn't seem to make any difference at all, literally none whatsoever, and SourceTree continued to be what I can only describe as "slow as fuck" - if you'll forgive the technical jargon. The odd thing is, though, which just occurred to me like literally right now, it might actually be safer to add the folder exclusion after all! Because then there's zero risk of the Javascript interpreter springing into action :-| What a time to be alive! (But I still stand by everything I said about POSIX.)
- pitay 9y agoThe malware protection system running uses a filesystem minifilter so may not matter what executable is running just that files are changed in the NTFS filesystem. So the grandparent post has great advice. It is definitely worth trying even if you may not want it to be the long term solution.
- Klathmon 9y agoI tried that but still saw significantly reduced build times when working on some projects. I think it has something to do with the temp file directory (which I don't want to whitelist for obvious reasons), so I just deal with disabling it when I build. At this point I've memorized the keys to hit to quickly disable and re-enable defender's real time protection (winkey > "defen" > enter > tab > (down to disable, up to enable) > alt + F4)
- voltagex_ 9y agoExclude C:\Git or whatever. I thought MS were fixing the high CPU usage and disk thrashing in the Creators Update, but evidently not.
- Sir_Cmpwn 9y agoI'm curious to hear your rationale for preferring Windows over POSIX. It's interesting to draw that comparision and conclude that Windows is better (most arguments favor the UI/UX, the large body of software, or the hardware support - not APIs/standards).
- wfunction 9y ago> most arguments favor the UI/UX, the large body of software, or the hardware support - not APIs/standards Windows kernel API documentation vs. Linux kernel API documentation... there's not even a contest to be had.
- temac 9y agoOTOH, the situation is reversed by the userspace API documentation... even more so if we are talking about POSIX vs Win32.......
- wfunction 9y agoI'm not exactly a hardcore fan of Win32 userspace documentation but POSIX's drives me far more insane. Can you name a few examples that aren't from shell32/shlwapi?
- temac 9y agoGeneral principles will be more interesting than examples: Win32 does not list the errors that can happen, rendering the greater error code space it has half-useless. Even without considering errors, the description of what functions do is often unclear or made in not precise terms. It is often needed to test the functions in tiny test programs to actually understand all their details before you can use them properly, and given they often have a high number of parameters this makes this matter even worse. Something as simple as the CreateProcess and family of function is a complete mess (both in the doc and in the detailed way they work...) POSIX actually doubles as a reference documentation. I don't think such a thing really exists for Win32 -- MSDN is way too vague to achieve that purpose. Maybe people from Wine / ReactOS maintain a better doc, I don't know.
- taspeotis 9y agoFor some things, SourceTree 2 uses libgit2 instead of a new git.exe process. So there's less for Windows Defender to hook into and scan. https://blog.sourcetreeapp.com/2017/04/27/sourcetree-for-windows-2-0-new-ui-faster-performance-and-microsoft-git-virtual-file-system-support/ https://blog.sourcetreeapp.com/2017/04/27/sourcetree-for-win...
- richardwhiuk 9y agoHuh? What's the relevance of this totally off topic thread?
- deleted 9y ago[deleted]
- deleted 9y ago[deleted]