TL;DR it seems like when cst::cryptprotect::CryptProtect::OnNotification receives notification from the minifilter driver vlflt.sys, it tries to normalize the path by converting it to lowercase. However, the MSVC STL implementation that EPSecurityService.exe (BEST 8.26.11.679) uses has a locale lock inside std::use_facet<std::ctype<wchar_t>> which std::tolower(wch, loc) uses, serializing all worker threads touching it:
It is captured on a 64 core machine, and EPSecurityService.exe is using 50%+ of its CPU.
Background:
We're investigating why an upgrade from ripgrep 15.2.0 to 16.0.0 resulted in much worse performance:
We have rg.exe excluded from On-Access and ATC:
Then, we noticed that once ransomware mitigation exclusion is added, the performance issue is gone. It was however not needed in the previous version.
It seems like Bitdefender has complicated heuristics for which process should enter the monitoring of ransomware mitigation, and I'm fine with that. Yet when Bitdefender decides that the process should be monitored, a highly optimized, multithreaded application like ripgrep can suffer severely from that path.
Since ripgrep is widely used across all mainstream AI coding agents like Codex and Claude, I hope this can be fixed soon. Whitelisting ripgrep 16.0.0 from ransomware mitigation is ok (either by myself or somewhere in your signature update), but I do think the engine can use some improvements.
I'll open an issue with the support with this post.