diff --git a/content/en/troubleshooting/performance.md b/content/en/troubleshooting/performance.md index 9421d1aa6..5b6fa0217 100644 --- a/content/en/troubleshooting/performance.md +++ b/content/en/troubleshooting/performance.md @@ -1,6 +1,6 @@ --- title: Performance -description: Use template metrics and timers to identify opportunities to improve performance. +description: Tools and suggestions for evaluating and improving performance. categories: [troubleshooting] keywords: [] menu: @@ -12,6 +12,20 @@ toc: true aliases: [/troubleshooting/build-performance/] --- +## Virus scanning + +Virus scanners are an essential component of system protection, but the performance impact can be severe for applications like Hugo that frequently read and write to disk. For example, with Microsoft Defender Antivirus, build times for some sites may increase by 400% or more. + +Before building a site, your virus scanner has already evaluated the files in your project directory. Scanning them again while building the site is superfluous. To improve performance, add Hugo's executable to your virus scanner's process exclusion list. + +For example, with Microsoft Defender Antivirus: + +**Start** > **Settings** > **Privacy & security** > **Windows Security** > **Open Windows Security** > **Virus & threat protection** > **Manage settings** > **Add or remove exclusions** > **Add an exclusion** > **Process** + +Then type `hugo.exe` add press the **Add** button. + +Other virus scanners have similar exclusion mechanisms. See documentation. + ## Template metrics Hugo is fast, but inefficient templates impede performance. Enable template metrics to determine which templates take the most time, and to identify caching opportunities: